Commits

Olivier Grisel committed 07fdfd8

pep8 fixes

  • Participants
  • Parent commits 6f7c300

Comments (0)

Files changed (1)

virtualkeyring.py

 secret master password and a domain-specific key like the name of the website
 you are building a password for.
 
-The password is then the 8th first characters of the letters + digits encoding of
-sha1 digest of the concatenation of the master password and the domain key::
+The password is then the 8th first characters of the letters + digits encoding
+of sha1 digest of the concatenation of the master password and the domain key::
 
   >>> make_password("myprecious", "paypal")
   'muvcEizM'
 
-  >>> make_password("myprecious", "jdoe@example.com", uppercase=False, length=6)
+  >>> make_password("myprecious", "jdoe@example.com", uppercase=False,
+  ...               length=6)
   'ykn0nu'
 
   >>> make_password("myprecious", "jdoe@example.com", digits=False, length=10)
     from sha import new as sha1
 
 ONE_BYTE = 2 ** 8
-DEFAULT_LENGTH = 8 # default password length
+DEFAULT_LENGTH = 8  # default password length
 DEFAULT_ALPHABET = string.lowercase + string.uppercase + string.digits
 
+
 def bytes2number(bs):
     """Convert a python string (of bytes) into a python integer
 
                          uppercase=uppercase, digits=digits,
                          length=length, alphabet=alphabet)
 
+
 def add_key():
     """print key and launch ssh-add
     """
     try:
         passwd = get_password(length=options.length,
                               alphabet=options.alphabet)
-        print "your password is:", passwd
-        print "please clean your console (ctrl-L) after usage"
+        print("your password is:", passwd)
     except KeyboardInterrupt:
         pass
 
 if __name__ == "__main__":
-   main()
+    main()