diff options
author | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-17 18:23:11 +0200 |
---|---|---|
committer | Arturo FilastoĢ <hellais@torproject.org> | 2011-08-17 18:23:11 +0200 |
commit | 4a55d3546be8f0444b12d634ccf01c5a107d46eb (patch) | |
tree | fce4a043ea8ee1f445588c2775aeed86f995757f /packages/torouter-web/tui | |
parent | 1908a9a1966f67313a2afe3aefab33768cf8dce8 (diff) | |
download | torouter-4a55d3546be8f0444b12d634ccf01c5a107d46eb.tar.gz torouter-4a55d3546be8f0444b12d634ccf01c5a107d46eb.zip |
Fix comment line parsing (thanks atgar)
Diffstat (limited to 'packages/torouter-web/tui')
-rw-r--r-- | packages/torouter-web/tui/utils/parsing.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/torouter-web/tui/utils/parsing.py b/packages/torouter-web/tui/utils/parsing.py index 6acf988..beb45d3 100644 --- a/packages/torouter-web/tui/utils/parsing.py +++ b/packages/torouter-web/tui/utils/parsing.py @@ -81,6 +81,7 @@ class torrc: def parse(self): for line in self.fp.readlines(): + line = line.lstrip() if line.startswith("#") or line == "": continue else: |