1. Audrius Kažukauskas
  2. worldip

Commits

Audrius Kažukauskas  committed 257f973

Prefer simplejson instead of json from stdlib.

  • Participants
  • Parent commits 3f6a110
  • Branches default

Comments (0)

Files changed (2)

File requirements.txt

View file
  • Ignore whitespace
 IPy
 WebOb
 PyYAML
+simplejson

File worldip.py

View file
  • Ignore whitespace
 from IPy import IP
 
 try:
+    import simplejson as json
+except ImportError:
     import json
-except ImportError:
-    import simplejson as json
 
 DB_URI = os.getenv('WORLDIP_DB_URI') or 'sqlite:///worldip.db'