[tor-commits] [torouter/master] Fix comment line parsing (thanks atgar)
hellais at torproject.org
hellais at torproject.org
Fri Aug 19 08:51:36 UTC 2011
commit 4a55d3546be8f0444b12d634ccf01c5a107d46eb
Author: Arturo FilastoÌ <hellais at torproject.org>
Date: Wed Aug 17 18:23:11 2011 +0200
Fix comment line parsing (thanks atgar)
---
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:
More information about the tor-commits
mailing list