subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From futat...@apache.org
Subject svn commit: r1880178 - /subversion/trunk/tools/dev/wc-format.py
Date Thu, 23 Jul 2020 03:57:15 GMT
Author: futatuki
Date: Thu Jul 23 03:57:14 2020
New Revision: 1880178

URL: http://svn.apache.org/viewvc?rev=1880178&view=rev
Log:
* tools/dev/wc-format.py (get_format):
  Avoid comparison between str and int, which is not allowed on Python 3.

Modified:
    subversion/trunk/tools/dev/wc-format.py

Modified: subversion/trunk/tools/dev/wc-format.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/wc-format.py?rev=1880178&r1=1880177&r2=1880178&view=diff
==============================================================================
--- subversion/trunk/tools/dev/wc-format.py (original)
+++ subversion/trunk/tools/dev/wc-format.py Thu Jul 23 03:57:14 2020
@@ -40,7 +40,7 @@ def get_format(wc_path):
     parent_path = os.path.dirname(os.path.abspath(wc_path))
     if wc_path != parent_path:
       formatno = get_format(parent_path)
-      if formatno >= MIN_SINGLE_DB_FORMAT:
+      if isinstance(formatno, int) and formatno >= MIN_SINGLE_DB_FORMAT:
       	return formatno
 
   return formatno



Mime
View raw message