[pypy-commit] pypy default: move import outside of function
justinpeel
noreply at buildbot.pypy.org
Tue Feb 28 04:37:55 CET 2012
Author: Justin Peel <notmuchtotell at gmail.com>
Branch:
Changeset: r52950:1604c8f1d469
Date: 2012-02-27 20:37 -0700
http://bitbucket.org/pypy/pypy/changeset/1604c8f1d469/
Log: move import outside of function
diff --git a/pypy/interpreter/pyparser/parsestring.py b/pypy/interpreter/pyparser/parsestring.py
--- a/pypy/interpreter/pyparser/parsestring.py
+++ b/pypy/interpreter/pyparser/parsestring.py
@@ -109,13 +109,14 @@
result = "0" + result
return result
+from pypy.rlib.rstring import StringBuilder
+
def PyString_DecodeEscape(space, s, recode_encoding):
"""
Unescape a backslash-escaped string. If recode_encoding is non-zero,
the string is UTF-8 encoded and should be re-encoded in the
specified encoding.
"""
- from pypy.rlib.rstring import StringBuilder
builder = StringBuilder(len(s))
ps = 0
end = len(s)
More information about the pypy-commit
mailing list