Show More
@@ -69,11 +69,11 b' class config(object):' | |||
|
69 | 69 | |
|
70 | 70 | def read(self, path, fp=None): |
|
71 | 71 | sectionre = re.compile(r'\[([^\[]+)\]') |
|
72 | itemre = re.compile(r'([^=\s]+)\s*=\s*(.*)') | |
|
73 | contre = re.compile(r'\s+(\S.*)') | |
|
72 | itemre = re.compile(r'([^=\s]+)\s*=\s*(.*\S|)') | |
|
73 | contre = re.compile(r'\s+(\S.*\S)') | |
|
74 | 74 | emptyre = re.compile(r'(;|#|\s*$)') |
|
75 |
unsetre = re.compile(r'%unset\s+(\S |
|
|
76 | includere = re.compile(r'%include\s+(\S.*)') | |
|
75 | unsetre = re.compile(r'%unset\s+(\S+)') | |
|
76 | includere = re.compile(r'%include\s+(\S.*\S)') | |
|
77 | 77 | section = "" |
|
78 | 78 | item = None |
|
79 | 79 | line = 0 |
General Comments 0
You need to be logged in to leave comments.
Login now