mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Removed redundant numbered parameters from str.format().
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
This commit is contained in:
committed by
Tim Graham
parent
50c1d8f24b
commit
560b4207b1
@@ -17,7 +17,7 @@ class SafeJoinTests(unittest.TestCase):
|
||||
drive, path = os.path.splitdrive(safe_join("/", "path"))
|
||||
self.assertEqual(
|
||||
path,
|
||||
"{0}path".format(os.path.sep),
|
||||
"{}path".format(os.path.sep),
|
||||
)
|
||||
|
||||
drive, path = os.path.splitdrive(safe_join("/", ""))
|
||||
|
||||
Reference in New Issue
Block a user