diff options
| author | Ray Ashman Jr <ray.ashman.jr@gmail.com> | 2013-11-02 19:53:29 -0400 |
|---|---|---|
| committer | Ray Ashman Jr <ray.ashman.jr@gmail.com> | 2013-11-02 19:53:29 -0400 |
| commit | e2ae8b048e7198428f696375b8bdcd89e90002d1 (patch) | |
| tree | 5788bd3c2a074e5c5c9f354db2e6e7ef1cbce2ad /django/utils/dateformat.py | |
| parent | 3bc0d46a840f17dce561daca8a6b8690b2cf5d0a (diff) | |
Correct flake8 E302 violations
Diffstat (limited to 'django/utils/dateformat.py')
| -rw-r--r-- | django/utils/dateformat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py index 27413a2e67..78483f2d4c 100644 --- a/django/utils/dateformat.py +++ b/django/utils/dateformat.py @@ -26,6 +26,7 @@ from django.utils.timezone import get_default_timezone, is_aware, is_naive re_formatchars = re.compile(r'(?<!\\)([aAbBcdDeEfFgGhHiIjlLmMnNoOPrsStTUuwWyYzZ])') re_escaped = re.compile(r'\\(.)') + class Formatter(object): def format(self, formatstr): pieces = [] @@ -36,6 +37,7 @@ class Formatter(object): pieces.append(re_escaped.sub(r'\1', piece)) return ''.join(pieces) + class TimeFormat(Formatter): def __init__(self, obj): |
