diff --git a/src/registry.py b/src/registry.py index 3f7675909..5ce715081 100644 --- a/src/registry.py +++ b/src/registry.py @@ -30,6 +30,7 @@ __revision__ = "$Id$" import re +import os import sets import time import string @@ -62,15 +63,20 @@ def open(filename, clear=False): _cache.clear() _fd = file(filename) fd = utils.nonCommentNonEmptyLines(_fd) - for (i, line) in enumerate(fd): + acc = '' + for line in fd: line = line.rstrip('\r\n') + if line.endswith('\\'): + acc += line[:-1] + continue + else: + acc = line try: - #print '***', repr(line) - (key, value) = re.split(r'(?