[pypy-svn] r33372 - pypy/dist/pypy/translator/cli

antocuni at codespeak.net antocuni at codespeak.net
Tue Oct 17 15:02:02 CEST 2006


Author: antocuni
Date: Tue Oct 17 15:02:00 2006
New Revision: 33372

Modified:
   pypy/dist/pypy/translator/cli/class_.py
   pypy/dist/pypy/translator/cli/cts.py
   pypy/dist/pypy/translator/cli/gencli.py
Log:
Python2.3 compatibility



Modified: pypy/dist/pypy/translator/cli/class_.py
==============================================================================
--- pypy/dist/pypy/translator/cli/class_.py	(original)
+++ pypy/dist/pypy/translator/cli/class_.py	Tue Oct 17 15:02:00 2006
@@ -2,6 +2,11 @@
 from pypy.translator.cli.node import Node
 from pypy.translator.cli.cts import CTS
 
+try:
+    set
+except NameError:
+    from sets import Set as set
+
 class Class(Node):
     def __init__(self, db, INSTANCE, namespace, name):
         self.db = db

Modified: pypy/dist/pypy/translator/cli/cts.py
==============================================================================
--- pypy/dist/pypy/translator/cli/cts.py	(original)
+++ pypy/dist/pypy/translator/cli/cts.py	Tue Oct 17 15:02:00 2006
@@ -11,6 +11,11 @@
 from pypy.translator.cli.option import getoption
 from pypy.translator.cli import oopspec
 
+try:
+    set
+except NameError:
+    from sets import Set as set
+
 from pypy.tool.ansi_print import ansi_log
 import py
 log = py.log.Producer("cli") 

Modified: pypy/dist/pypy/translator/cli/gencli.py
==============================================================================
--- pypy/dist/pypy/translator/cli/gencli.py	(original)
+++ pypy/dist/pypy/translator/cli/gencli.py	Tue Oct 17 15:02:00 2006
@@ -17,6 +17,11 @@
 from pypy.translator.cli.prebuiltnodes import get_prebuilt_nodes
 from pypy.translator.cli.stackopt import StackOptGenerator
 
+try:
+    set
+except NameError:
+    from sets import Set as set
+
 #USE_STACKOPT = True and not getoption('nostackopt')
 USE_STACKOPT = False
 



More information about the Pypy-commit mailing list