community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rlenfer...@apache.org
Subject svn commit: r1888913 - in /comdev/nearby_people/nearby: dates.py foaf.py
Date Sun, 18 Apr 2021 16:26:52 GMT
Author: rlenferink
Date: Sun Apr 18 16:26:52 2021
New Revision: 1888913

URL: http://svn.apache.org/viewvc?rev=1888913&view=rev
Log:
More python2 -> python3 fixes

Modified:
    comdev/nearby_people/nearby/dates.py
    comdev/nearby_people/nearby/foaf.py

Modified: comdev/nearby_people/nearby/dates.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/nearby/dates.py?rev=1888913&r1=1888912&r2=1888913&view=diff
==============================================================================
--- comdev/nearby_people/nearby/dates.py (original)
+++ comdev/nearby_people/nearby/dates.py Sun Apr 18 16:26:52 2021
@@ -79,5 +79,5 @@ class UIDDates(object):
                          ymd = [int(x) for x in (v[0:4],v[4:6],v[6:8])]
                          v = datetime.date(*ymd)
                     person[k] = v
-        except IOError, e:
+        except IOError as e:
              sys.stderr.write("Unable to process created LDIF file: %s\n" % e)

Modified: comdev/nearby_people/nearby/foaf.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/nearby/foaf.py?rev=1888913&r1=1888912&r2=1888913&view=diff
==============================================================================
--- comdev/nearby_people/nearby/foaf.py (original)
+++ comdev/nearby_people/nearby/foaf.py Sun Apr 18 16:26:52 2021
@@ -109,7 +109,7 @@ class FOAF(object):
                    usock = urllib.urlopen(uri)
                    self._parse_foaf(usock, uri)
                    usock.close()        
-                except IOError, e:
+                except IOError as e:
                    sys.stderr.write("Skipping %s due to broken server: %s\n" % (uri,e))
         self._mark_updated()
                 
@@ -129,7 +129,7 @@ class FOAF(object):
 
         try:
            foaf = parse(data)
-        except Exception, e:
+        except Exception as e:
            sys.stderr.write("Skipping %s due to invalid/corrupt file: %s\n" % (filename,e))
            return None
 



Mime
View raw message