mirror of
https://github.com/django/django.git
synced 2025-09-19 08:49:57 +00:00
Refs #23919 -- Stopped inheriting from object to define new style classes.
This commit is contained in:
parent
a556396339
commit
cecc079168
293 changed files with 512 additions and 514 deletions
|
@ -26,7 +26,7 @@ re_formatchars = re.compile(r'(?<!\\)([aAbBcdDeEfFgGhHiIjlLmMnNoOPrsStTUuwWyYzZ]
|
|||
re_escaped = re.compile(r'\\(.)')
|
||||
|
||||
|
||||
class Formatter(object):
|
||||
class Formatter:
|
||||
def format(self, formatstr):
|
||||
pieces = []
|
||||
for i, piece in enumerate(re_formatchars.split(force_text(formatstr))):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue