summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/string.py2
-rw-r--r--Lib/test/test_httplib.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/string.py b/Lib/string.py
index f8b4490..3c37b0b 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -178,7 +178,7 @@ class Template:
mapping = _multimap(kws, args[0])
else:
mapping = args[0]
- delimiter = self.delimiter[-1]
+ delimiter = self.delimiter[-1]
# Helper function for .sub()
def convert(mo):
named = mo.group('named')
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index deca23a..ede0f4b 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -118,7 +118,7 @@ def _test():
else:
print "Expect InvalidURL"
- for hp,h,p in (("[fe80::207:e9ff:fe9b]:8000", "fe80::207:e9ff:fe9b", 8000),
+ for hp,h,p in (("[fe80::207:e9ff:fe9b]:8000", "fe80::207:e9ff:fe9b", 8000),
("www.python.org:80", "www.python.org", 80),
("www.python.org", "www.python.org", 80),
("[fe80::207:e9ff:fe9b]", "fe80::207:e9ff:fe9b", 80)):