config: fix ConfigDir() for Python 2.3
authorTimo Savola <tsavola@movial.fi>
Tue, 8 Jul 2008 13:01:48 +0000 (16:01 +0300)
committerTimo Savola <tsavola@movial.fi>
Tue, 8 Jul 2008 13:01:48 +0000 (16:01 +0300)
matrix/config.py

index ba6f205..ecfcf12 100644 (file)
@@ -30,7 +30,7 @@ def config_dir(path=None, url=None, branch='master', optional=False):
 
                path = basename(url)
                if path.endswith('.git'):
-                       path = path.rsplit('.', 1)[0]
+                       path = path[:-4]
 
        if optional and path not in config.initial_config_dirs:
                if config.debug: