diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-08-03 14:04:13 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-03 14:04:13 -0500 |
commit | e707c064f8046e6ed384d43bb16fba50354a159a (patch) | |
tree | 8c393d821a5b2d100849db5aed07507ac2443aea /labels.py | |
parent | fc931b7f270705e03f66a039047c459af33564da (diff) |
remove dangling whitespace in source code files
Diffstat (limited to 'labels.py')
-rw-r--r-- | labels.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -11,11 +11,11 @@ from pointers import ( def remove_quoted_text(line): """get rid of content inside quotes and also removes the quotes from the input string""" - while line.count("\"") % 2 == 0 and line.count("\"") > 0: + while line.count("\"") % 2 == 0 and line.count("\"") > 0: first = line.find("\"") second = line.find("\"", first+1) line = line[0:first] + line[second+1:] - while line.count("\'") % 2 == 0 and line.count("'") > 0: + while line.count("\'") % 2 == 0 and line.count("'") > 0: first = line.find("\'") second = line.find("\'", first+1) line = line[0:first] + line[second+1:] @@ -153,7 +153,7 @@ def line_has_label(line): return False if ":" not in line: return False - if line[0] == ";": + if line[0] == ";": return False if line[0] == "\"": return False |