[pypy-commit] pypy py3k: one more place where to pass unicode to Signature()

antocuni noreply at buildbot.pypy.org
Wed Aug 22 14:35:57 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56802:6a591d00373a
Date: 2012-08-22 14:31 +0200
http://bitbucket.org/pypy/pypy/changeset/6a591d00373a/

Log:	one more place where to pass unicode to Signature()

diff --git a/pypy/annotation/description.py b/pypy/annotation/description.py
--- a/pypy/annotation/description.py
+++ b/pypy/annotation/description.py
@@ -182,7 +182,7 @@
         if signature is None:
             if hasattr(pyobj, '_generator_next_method_of_'):
                 from pypy.interpreter.argument import Signature
-                signature = Signature(['entry'])     # haaaaaack
+                signature = Signature([u'entry'])     # haaaaaack
                 defaults = ()
             else:
                 signature = cpython_code_signature(pyobj.func_code)
diff --git a/pypy/translator/generator.py b/pypy/translator/generator.py
--- a/pypy/translator/generator.py
+++ b/pypy/translator/generator.py
@@ -178,7 +178,7 @@
                            Constant(AssertionError("bad generator class"))],
                           graph.exceptblock))
     graph.startblock = regular_entry_block
-    graph.signature = Signature(['entry'])
+    graph.signature = Signature([u'entry'])
     graph.defaults = ()
     checkgraph(graph)
     eliminate_empty_blocks(graph)


More information about the pypy-commit mailing list