mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-02 00:02:36 +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__ = []
|
__all__ = []
|
||||||
|
|
||||||
exported = ['ignore', 'window', 'group', 'partition',
|
exported = ['ignore', 'window', 'group', 'partition', 'set', 'frozenset',
|
||||||
'any', 'all', 'rsplit', 'dynamic']
|
'any', 'all', 'rsplit', 'dynamic']
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
@ -78,7 +78,10 @@ class DynamicScope(object):
|
|||||||
raise NameError, name
|
raise NameError, name
|
||||||
|
|
||||||
def __getattr__(self, 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):
|
def __setattr__(self, name, value):
|
||||||
self._getLocals(name)[name] = value
|
self._getLocals(name)[name] = value
|
||||||
@ -219,6 +222,10 @@ def split(s):
|
|||||||
csv.join = join
|
csv.join = join
|
||||||
csv.split = split
|
csv.split = split
|
||||||
|
|
||||||
|
import sets
|
||||||
|
set = sets.Set
|
||||||
|
frozenset = sets.ImmutableSet
|
||||||
|
|
||||||
import socket
|
import socket
|
||||||
# Some socket modules don't have sslerror, so we'll just make it an error.
|
# Some socket modules don't have sslerror, so we'll just make it an error.
|
||||||
if not hasattr(socket, 'sslerror'):
|
if not hasattr(socket, 'sslerror'):
|
||||||
|
Loading…
Reference in New Issue
Block a user