mod string formatting for 2.5 v0.7.0
authorKenneth Reitz <me@kennethreitz.com>
Sun, 23 Oct 2011 01:33:00 +0000 (21:33 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Sun, 23 Oct 2011 01:33:00 +0000 (21:33 -0400)
requests/defaults.py

index 9aad901..a569976 100644 (file)
@@ -24,7 +24,7 @@ defaults = dict()
 
 
 defaults['base_headers'] = {
-    'User-Agent': 'python-requests/{0}'.format(__version__),
+    'User-Agent': 'python-requests/%s' % __version__,
     'Accept-Encoding': ', '.join([ 'identity', 'deflate', 'compress', 'gzip' ]),
 }