diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-20 18:53:11 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-22 09:29:56 +0200 |
| commit | a84d79f572fbe7512b999c6b3cd7667cbe3138ff (patch) | |
| tree | 7d17f74640d7d0437c7cd87816b29bcd0cdb2ca7 /django/utils/importlib.py | |
| parent | ca07fda2efea24cb43423b884fa4648d44e52963 (diff) | |
[py3] Added Python 3 compatibility for xrange.
Diffstat (limited to 'django/utils/importlib.py')
| -rw-r--r-- | django/utils/importlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/importlib.py b/django/utils/importlib.py index ef4d0e4a27..703ba7f6d8 100644 --- a/django/utils/importlib.py +++ b/django/utils/importlib.py @@ -6,7 +6,7 @@ def _resolve_name(name, package, level): if not hasattr(package, 'rindex'): raise ValueError("'package' not set to a string") dot = len(package) - for x in xrange(level, 1, -1): + for x in range(level, 1, -1): try: dot = package.rindex('.', 0, dot) except ValueError: |
