~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/crypt.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
       cryptedpasswd = pwd.getpwnam(username)[1]
53
53
       if cryptedpasswd:
54
54
           if cryptedpasswd == 'x' or cryptedpasswd == '*':
55
 
               raise "Sorry, currently no support for shadow passwords"
 
55
               raise NotImplementedError(
 
56
                   "Sorry, currently no support for shadow passwords")
56
57
           cleartext = getpass.getpass()
57
58
           return crypt.crypt(cleartext, cryptedpasswd) == cryptedpasswd
58
59
       else: