Author: Justin Peel <notmuchtot...@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)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to