mirror of
https://github.com/django/django.git
synced 2025-09-19 17:00:06 +00:00
Fixed #2109 -- Convert old-style classes to new-style classes throughout Django. Thanks, Nicola Larosa
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5edd1335b2
commit
2abfd5dd58
33 changed files with 63 additions and 64 deletions
|
@ -19,7 +19,7 @@ import re, time
|
|||
re_formatchars = re.compile(r'(?<!\\)([aABdDfFgGhHiIjlLmMnNOPrsStTUwWyYzZ])')
|
||||
re_escaped = re.compile(r'\\(.)')
|
||||
|
||||
class Formatter:
|
||||
class Formatter(object):
|
||||
def format(self, formatstr):
|
||||
pieces = []
|
||||
for i, piece in enumerate(re_formatchars.split(formatstr)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue