gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1883933 - in /gump/branches/python3/python/gump: actor/stats/mysql/statsdb.py core/language/path.py
Date Sun, 29 Nov 2020 11:08:15 GMT
Author: markt
Date: Sun Nov 29 11:08:15 2020
New Revision: 1883933

URL: http://svn.apache.org/viewvc?rev=1883933&view=rev
Log:
More python3 fixes

Modified:
    gump/branches/python3/python/gump/actor/stats/mysql/statsdb.py
    gump/branches/python3/python/gump/core/language/path.py

Modified: gump/branches/python3/python/gump/actor/stats/mysql/statsdb.py
URL: http://svn.apache.org/viewvc/gump/branches/python3/python/gump/actor/stats/mysql/statsdb.py?rev=1883933&r1=1883932&r2=1883933&view=diff
==============================================================================
--- gump/branches/python3/python/gump/actor/stats/mysql/statsdb.py (original)
+++ gump/branches/python3/python/gump/actor/stats/mysql/statsdb.py Sun Nov 29 11:08:15 2020
@@ -144,7 +144,7 @@ class StatisticsDB:
                                       moduleName, stats)
 
             # Extract that extra
-            if settings.has_key('last_modified') and settings['last_modified']:
+            if 'last_modified' in settings and settings['last_modified']:
                 value = settings['last_modified']
                 if isinstance(value, datetime.datetime):
                     stats.lastModified = value
@@ -212,7 +212,7 @@ class StatisticsDB:
         Extract values by name from the DB row
         """
         for (attr, column) in StatisticsDB.ATTR_COLUMN_MAP.items():
-            if settings.has_key(column) and settings[column]:
+            if column in settings and settings[column]:
                 if hasattr(stats, attr):
                     value = settings[column]
 

Modified: gump/branches/python3/python/gump/core/language/path.py
URL: http://svn.apache.org/viewvc/gump/branches/python3/python/gump/core/language/path.py?rev=1883933&r1=1883932&r2=1883933&view=diff
==============================================================================
--- gump/branches/python3/python/gump/core/language/path.py (original)
+++ gump/branches/python3/python/gump/core/language/path.py Sun Nov 29 11:08:15 2020
@@ -108,7 +108,7 @@ class ArtifactPath(Annotatable):
             self.parts.append(part)
         
     def importFlattenedParts(self,parts):
-        for part in split(parts,os.pathsep):
+        for part in parts.split(os.pathsep):
             self.addPathPart(part)
             
     def importPath(self,p):



Mime
View raw message