diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-10-26 23:22:21 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-10-26 23:22:21 +0200 |
| commit | ec0a3f5085219cd647d3e93841018987ce5384bf (patch) | |
| tree | f795b496b04cec9c5ef9df4c506d96ab5f158b61 /django/utils | |
| parent | e052ada0f6f21208d0f215d2f9184c4069ac1419 (diff) | |
[1.6.x] Removed relative usage of import_module
Python 3 version of importlib doesn't support this syntax.
Partial backport of fdd7a355bf. Refs #21335.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/formats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/formats.py b/django/utils/formats.py index cc66149026..dbe1716639 100644 --- a/django/utils/formats.py +++ b/django/utils/formats.py @@ -54,7 +54,7 @@ def iter_format_modules(lang): for location in format_locations: for loc in locales: try: - yield import_module('.formats', location % loc) + yield import_module('%s.formats' % (location % loc)) except ImportError: pass |
