mirror of
https://github.com/django/django.git
synced 2025-09-20 01:10:35 +00:00
Correct flake8 E302 violations
This commit is contained in:
parent
3bc0d46a84
commit
e2ae8b048e
30 changed files with 260 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue