diff options
Diffstat (limited to 'django/utils/six.py')
| -rw-r--r-- | django/utils/six.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/django/utils/six.py b/django/utils/six.py index e3720b1308..b5f0162393 100644 --- a/django/utils/six.py +++ b/django/utils/six.py @@ -130,7 +130,6 @@ class MovedAttribute(_LazyDescr): return getattr(module, self.attr) - class _MovedItems(types.ModuleType): """Lazy loading of moved objects""" @@ -198,7 +197,6 @@ del attr moves = sys.modules[__name__ + ".moves"] = _MovedItems(__name__ + ".moves") - class Module_six_moves_urllib_parse(types.ModuleType): """Lazy loading of moved objects in six.moves.urllib_parse""" @@ -484,13 +482,11 @@ if PY3: import builtins exec_ = getattr(builtins, "exec") - def reraise(tp, value, tb=None): if value.__traceback__ is not tb: raise value.with_traceback(tb) raise value - print_ = getattr(builtins, "print") del builtins @@ -507,12 +503,10 @@ else: _locs_ = _globs_ exec("""exec _code_ in _globs_, _locs_""") - exec_("""def reraise(tp, value, tb=None): raise tp, value, tb """) - def print_(*args, **kwargs): """The new-style print function.""" fp = kwargs.pop("file", sys.stdout) |
