[Zope-Checkins] SVN: Zope/trunk/lib/python/App/Extensions.py removed support for .pyp files ...no idea

Andreas Jung andreas at andreas-jung.com
Tue Mar 14 15:05:30 EST 2006


Log message for revision 66019:
  removed support for .pyp files ...no idea
  what they were used for but the related code
  will definetely no longer work under Python 2.4
  because the rotor module has gone...
  

Changed:
  U   Zope/trunk/lib/python/App/Extensions.py

-=-
Modified: Zope/trunk/lib/python/App/Extensions.py
===================================================================
--- Zope/trunk/lib/python/App/Extensions.py	2006-03-14 19:59:04 UTC (rev 66018)
+++ Zope/trunk/lib/python/App/Extensions.py	2006-03-14 20:05:29 UTC (rev 66019)
@@ -110,12 +110,12 @@
         return old[name]
 
     base, ext = os.path.splitext(module)
-    if ext in ('py', 'pyp', 'pyc'):
+    if ext in ('py', 'pyc'):
         # XXX should never happen; splitext() keeps '.' with the extension
         p = base
     else:
         p = module
-    p=getPath('Extensions', p, suffixes=('','py','pyp','pyc'))
+    p=getPath('Extensions', p, suffixes=('','py','pyc'))
     if p is None:
         raise NotFound, (
             "The specified module, <em>%s</em>, couldn't be found." % module)
@@ -129,16 +129,6 @@
         file.close()
         m=binmod.__dict__
 
-    elif ext=='.pyp':
-        import rotor
-        prod_id=module.split('.', 1)[0]
-        data=zlib.decompress(
-            rotor.newrotor(prod_id +' shshsh').decrypt(open(p,'rb').read())
-            )
-        execsrc=compile(data, module, 'exec')
-        m={}
-        exec execsrc in m
-
     else:
         try: execsrc=open(p)
         except: raise NotFound, (



More information about the Zope-Checkins mailing list