# HG changeset patch # User Bernhard Reiter # Date 1486971486 -3600 # Node ID 81f75c9aac844f7088545339819753f00d3889e0 # Parent f8e24b2b6b6aba51302a792dbb61f0a79dea8020 Cleanup, minor: improves Comments. Bumps copyright. diff -r f8e24b2b6b6a -r 81f75c9aac84 ppgen.py --- a/ppgen.py Fri Feb 10 16:59:12 2017 +0100 +++ b/ppgen.py Mon Feb 13 08:38:06 2017 +0100 @@ -21,7 +21,7 @@ https://bitbucket.org/s_l_teichmann/ppgen -Copyright 2016 by Intevation GmbH. +Copyright 2016, 2017 by Intevation GmbH. Author: Bernhard E. Reiter This file is Free Software under the Apache 2.0 license and thus @@ -82,11 +82,11 @@ TODO: add option to use both languages for people that speak them both? """ - dset = set() # using the datatype 'set' to aviod duplicates + dset = set() # using the datatype 'set' to avoid duplicates splitter = re.compile(r"""\ \|\ # first pattern ' | ' |;\ # second pattern '; ' - |(?<=\S)/(?=\S) # 3.: '\' surrounded by chars + |(?<=\S)/(?=\S) # 3.: '/' surrounded by chars |\s+ # by whitespace """, re.VERBOSE) @@ -131,7 +131,7 @@ howMany = 4 - # use a dictionary with lower case words for a simple check if + # use a dictionary with lower cased words for a simple check if # our random source is okay print("\nGenerated passphrase with {} randomly selected words:\n".format( howMany))