From: Daniel Beecham Date: Thu, 21 Jun 2012 20:21:45 +0000 (+0200) Subject: PEP8 fixes. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=d7eb878ce36b57e44fd64668e42996db2f9a728f;p=redacted-XKCD-password-generator.git PEP8 fixes. --- diff --git a/xkcd-password.py b/xkcd-password.py index 3f54d6d..8dc6bf1 100755 --- a/xkcd-password.py +++ b/xkcd-password.py @@ -44,7 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. try: rng = random.SystemRandom except AttributeError: - sys.stderr.write("WARNING: System does not support cryptographically" + sys.stderr.write("WARNING: System does not support cryptographically" "secure random number generator or you are using Python version" "< 2.4. Continuing with less-secure generator.\n") rng = random.Random @@ -77,7 +77,7 @@ def generate_wordlist(wordfile=None, sys.stderr.write("Could not find a word file, or word file does" " not exist.\n") sys.exit(1) - + wordfile = os.path.expanduser(wordfile) # just to be sure words = []