diff MoinMoin/wikiutil.py @ 2267:463f3de3f981

more wikiutil tests, minor bugfix
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Jul 2007 01:23:48 +0200
parents 3318504c5dd5
children 01f05e74aa9c
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sun Jul 01 00:08:51 2007 +0200
+++ b/MoinMoin/wikiutil.py	Sun Jul 01 01:23:48 2007 +0200
@@ -494,6 +494,8 @@
 
 def unquoteName(name):
     """ if there are quotes around the name, strip them """
+    if not name:
+        return name
     for quote_char in QUOTE_CHARS:
         if quote_char == name[0] == name[-1]:
             return name[1:-1]