diff martini/config.py @ 12:4faed08eb8d8

py35
author Jeff Hammel <k0scist@gmail.com>
date Mon, 20 Feb 2017 14:34:18 -0800
parents c77259f467a3
children 904bb82c3308
line wrap: on
line diff
--- a/martini/config.py	Tue Aug 23 18:17:11 2016 -0700
+++ b/martini/config.py	Mon Feb 20 14:34:18 2017 -0800
@@ -27,7 +27,7 @@
     if os.path.exists(resource):
         return file(resource)
     if sum([resource.startswith(http)
-            for http in 'http://', 'https://']):
+            for http in ('http://', 'https://')]):
         return urllib2.urlopen(resource)
     return StringIO(resource)