changeset 7774:3b8f2750efcf

Handle when the slicemap option is an empty string In the cmdtable for the convert extension, the default value for splicefile is empty string, while mapfile (the class that reads splicemaps) expects either a real path or None. This patch changes mapfile to expect a real path or logical false (False, None, empty string, etc.)
author Stefan Rusek <stefan@rusek.org>
date Wed, 11 Feb 2009 21:47:57 +0100
parents 607de5bd3578
children 5280c39778b6
files hgext/convert/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py	Sun Feb 08 13:46:04 2009 +0100
+++ b/hgext/convert/common.py	Wed Feb 11 21:47:57 2009 +0100
@@ -325,7 +325,7 @@
         self._read()
 
     def _read(self):
-        if self.path is None:
+        if not self.path:
             return
         try:
             fp = open(self.path, 'r')