summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2018-05-22 11:35:10 +0200
committerChris Lamb <lamby@debian.org>2018-05-22 11:37:24 +0200
commit1a74b88ca041f3bc50783ee4d7a4f2c7024204f8 (patch)
treef3592612a4c8398cf969050e44b0160f497050d3
parent8939723b6c2d5e910a8c69e28e5febecaa63a756 (diff)
downloadinstallation-guide-1a74b88ca041f3bc50783ee4d7a4f2c7024204f8.zip
Drop some trailing whitespace. (PEP8 E101, W291, etc.)
-rwxr-xr-xpo/fi/list-unkn-words.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/po/fi/list-unkn-words.py b/po/fi/list-unkn-words.py
index 9858b6550..98557f727 100755
--- a/po/fi/list-unkn-words.py
+++ b/po/fi/list-unkn-words.py
@@ -35,14 +35,14 @@ Print out unknown words found in filename. Options
added this option to be compatible with enchant."""
parser = OptionParser(usage=usage)
parser.set_defaults(verbose=False, listonly=True, wordlists=[])
- parser.add_option("-p", "--wordlist",
+ parser.add_option("-p", "--wordlist",
action="append", type="string", dest="wordlists",
help="File with OK words one per line.",
metavar="Wordlist")
- parser.add_option("-d", "--language",
+ parser.add_option("-d", "--language",
action="store", type="string", dest="language",
help=lhelpstr)
- parser.add_option("-l", "--listonly",
+ parser.add_option("-l", "--listonly",
action="store_true", dest="listonly",
help=lonlyhelpstr)
parser.add_option("-v", action="store_true", dest="verbose",
@@ -65,7 +65,7 @@ added this option to be compatible with enchant."""
print "Proofreading using language ", options.language, "."
else:
print "Proofreading using default language."
-
+
return (options, args)
@@ -124,7 +124,7 @@ if __name__ == "__main__":
utext = unicode(text, "utf-8")
if o.verbose:
print "Text as read:"
- print text
+ print text
print "Text to check is:"
for u in utext:
print u.encode("utf-8"),
@@ -141,7 +141,7 @@ if __name__ == "__main__":
else:
unknWords[err.word] = 1
textF.close()
-
+
#Sort alphabetically and print out as count word
wlist = unknWords.keys()
wlist.sort()