From 4a55d3546be8f0444b12d634ccf01c5a107d46eb Mon Sep 17 00:00:00 2001 From: Arturo FilastoĢ€ Date: Wed, 17 Aug 2011 18:23:11 +0200 Subject: Fix comment line parsing (thanks atgar) --- packages/torouter-web/tui/utils/parsing.py | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/torouter-web/tui') 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: -- cgit v1.2.3