You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by fu...@apache.org on 2020/07/23 03:57:15 UTC

svn commit: r1880178 - /subversion/trunk/tools/dev/wc-format.py

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