Commit db201759 authored by Andreas Jung's avatar Andreas Jung

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...
parent 5207d019
...@@ -110,12 +110,12 @@ def getObject(module, name, reload=0, ...@@ -110,12 +110,12 @@ def getObject(module, name, reload=0,
return old[name] return old[name]
base, ext = os.path.splitext(module) 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 # XXX should never happen; splitext() keeps '.' with the extension
p = base p = base
else: else:
p = module p = module
p=getPath('Extensions', p, suffixes=('','py','pyp','pyc')) p=getPath('Extensions', p, suffixes=('','py','pyc'))
if p is None: if p is None:
raise NotFound, ( raise NotFound, (
"The specified module, <em>%s</em>, couldn't be found." % module) "The specified module, <em>%s</em>, couldn't be found." % module)
...@@ -129,16 +129,6 @@ def getObject(module, name, reload=0, ...@@ -129,16 +129,6 @@ def getObject(module, name, reload=0,
file.close() file.close()
m=binmod.__dict__ 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: else:
try: execsrc=open(p) try: execsrc=open(p)
except: raise NotFound, ( except: raise NotFound, (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment