community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlenfer...@apache.org
Subject svn commit: r1888909 - in /comdev/nearby_people: lib/geoname.py settings.py
Date Sun, 18 Apr 2021 15:35:42 GMT
Author: rlenferink
Date: Sun Apr 18 15:35:42 2021
New Revision: 1888909

URL: http://svn.apache.org/viewvc?rev=1888909&view=rev
Log:
Updated to python3 coding style

Modified:
    comdev/nearby_people/lib/geoname.py
    comdev/nearby_people/settings.py

Modified: comdev/nearby_people/lib/geoname.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/lib/geoname.py?rev=1888909&r1=1888908&r2=1888909&view=diff
==============================================================================
--- comdev/nearby_people/lib/geoname.py (original)
+++ comdev/nearby_people/lib/geoname.py Sun Apr 18 15:35:42 2021
@@ -37,11 +37,11 @@ def fetchJson(method, dparams):
     # Build the url
     uri = DOMAIN + '%s?%s&username=%s' % (method, urllib.urlencode(params), USERNAME)
     if DEBUG:
-        print uri
+        print(uri)
     resource = urllib2.urlopen(uri).readlines()
     js = json_parse(resource[0])
     if DEBUG:
-        print js
+        print(js)
     return js
 
 def get(geonameId, **kwargs):

Modified: comdev/nearby_people/settings.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/settings.py?rev=1888909&r1=1888908&r2=1888909&view=diff
==============================================================================
--- comdev/nearby_people/settings.py (original)
+++ comdev/nearby_people/settings.py Sun Apr 18 15:35:42 2021
@@ -182,8 +182,8 @@ LOGGING = {
 try:
     from local_settings import *
 except ImportError:
-    print "You need to create a local_settings.py file."
-    print "You might want to:"
-    print "     cp local_settings.py.example local_settings.py"
-    print " and then edit local_settings.py for your setup"
+    print("You need to create a local_settings.py file.")
+    print("You might want to:")
+    print("     cp local_settings.py.example local_settings.py")
+    print(" and then edit local_settings.py for your setup")
     sys.exit(1)



Mime
View raw message