[pypy-svn] r19066 - pypy/dist/pypy/annotation

mwh at codespeak.net mwh at codespeak.net
Thu Oct 27 12:33:30 CEST 2005


Author: mwh
Date: Thu Oct 27 12:33:29 2005
New Revision: 19066

Modified:
   pypy/dist/pypy/annotation/builtin.py
Log:
remove some unused code


Modified: pypy/dist/pypy/annotation/builtin.py
==============================================================================
--- pypy/dist/pypy/annotation/builtin.py	(original)
+++ pypy/dist/pypy/annotation/builtin.py	Thu Oct 27 12:33:29 2005
@@ -2,10 +2,9 @@
 Built-in functions.
 """
 
-import types
-import sys, os
+import sys
 from pypy.annotation.model import SomeInteger, SomeObject, SomeChar, SomeBool
-from pypy.annotation.model import SomeList, SomeString, SomeTuple, SomeSlice
+from pypy.annotation.model import SomeString, SomeTuple, SomeSlice
 from pypy.annotation.model import SomeUnicodeCodePoint, SomeAddress
 from pypy.annotation.model import SomeFloat, unionof
 from pypy.annotation.model import SomePBC, SomeInstance, SomeDict
@@ -195,11 +194,6 @@
     getbookkeeper().warning("ignoring apply%r" % (stuff,))
     return SomeObject()
 
-##def builtin_compile(*stuff):
-##    s = SomeObject()
-##    s.knowntype = types.CodeType
-##    return s
-
 def builtin_slice(*args):
     bk = getbookkeeper()
     if len(args) == 1:
@@ -279,9 +273,6 @@
 def test(*args):
     return SomeBool()
 
-def pathpart(*args):
-    return SomeString()
-
 def import_func(*args):
     return SomeObject()
 
@@ -316,11 +307,6 @@
 import unicodedata
 BUILTIN_ANALYZERS[unicodedata.decimal] = unicodedata_decimal # xxx
 
-# os.path stuff
-#BUILTIN_ANALYZERS[os.path.dirname] = pathpart
-#BUILTIN_ANALYZERS[os.path.normpath] = pathpart
-#BUILTIN_ANALYZERS[os.path.join] = pathpart
-
 # import
 BUILTIN_ANALYZERS[__import__] = import_func
 



More information about the Pypy-commit mailing list