mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Hack for now.
This commit is contained in:
parent
b9b04fdb90
commit
db52f4c286
11
src/fix.py
11
src/fix.py
@ -37,7 +37,7 @@ __revision__ = "$Id$"
|
||||
|
||||
__all__ = []
|
||||
|
||||
exported = ['ignore', 'window', 'group', 'partition',
|
||||
exported = ['ignore', 'window', 'group', 'partition', 'set', 'frozenset',
|
||||
'any', 'all', 'rsplit', 'dynamic']
|
||||
|
||||
import sys
|
||||
@ -78,7 +78,10 @@ class DynamicScope(object):
|
||||
raise NameError, name
|
||||
|
||||
def __getattr__(self, name):
|
||||
return self._getLocals(name)[name]
|
||||
try:
|
||||
return self._getLocals(name)[name]
|
||||
except (NameError, KeyError):
|
||||
return None
|
||||
|
||||
def __setattr__(self, name, value):
|
||||
self._getLocals(name)[name] = value
|
||||
@ -219,6 +222,10 @@ def split(s):
|
||||
csv.join = join
|
||||
csv.split = split
|
||||
|
||||
import sets
|
||||
set = sets.Set
|
||||
frozenset = sets.ImmutableSet
|
||||
|
||||
import socket
|
||||
# Some socket modules don't have sslerror, so we'll just make it an error.
|
||||
if not hasattr(socket, 'sslerror'):
|
||||
|
Loading…
Reference in New Issue
Block a user