[py-svn] r32462 - py/dist/py/path/svn

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Sep 18 19:29:40 CEST 2006


Author: cfbolz
Date: Mon Sep 18 19:29:38 2006
New Revision: 32462

Modified:
   py/dist/py/path/svn/svncommon.py
Log:
add colon to allowed characters on windows (thanks Ben Young). not tested.


Modified: py/dist/py/path/svn/svncommon.py
==============================================================================
--- py/dist/py/path/svn/svncommon.py	(original)
+++ py/dist/py/path/svn/svncommon.py	Mon Sep 18 19:29:38 2006
@@ -5,9 +5,10 @@
 import py
 from py.__.path import common
 
-
-# XXX this helper not used yet (but should be for testing
-# if the underlying svn binary supports certain features) 
+ALLOWED_CHARS = "_ -/\\=$." #add characters as necessary when tested
+if sys.platform == "win32":
+    ALLOWED_CHARS += ":"
+    
 def _getsvnversion(ver=[]):
     try:
         return ver[0]
@@ -24,11 +25,12 @@
         text = str(text).replace('$', '\\$')
     return text
 
+
 def _check_for_bad_chars(text):
     for c in str(text):
         if c.isalnum():
             continue
-        if c in "_ -/\\=$.": #add characters as necessary when tested
+        if c in ALLOWED_CHARS:
             continue
         return True
     return False



More information about the pytest-commit mailing list