summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/scripting/python/samba/samba3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/samba3.py b/source4/scripting/python/samba/samba3.py
index dff3671dbb..c21b457566 100644
--- a/source4/scripting/python/samba/samba3.py
+++ b/source4/scripting/python/samba/samba3.py
@@ -684,7 +684,7 @@ class ParamFile(object):
section = None
for i, l in enumerate(open(filename, 'r').xreadlines()):
l = l.strip()
- if not l:
+ if not l or l[0] == '#' or l[0] == ';':
continue
if l[0] == "[" and l[-1] == "]":
section = self._sanitize_name(l[1:-1])