[Zope-Checkins] CVS: Zope - zpasswd.py:1.21

Guido van Rossum guido@python.org
Tue, 18 Feb 2003 14:36:03 -0500


Update of /cvs-repository/Zope
In directory cvs.zope.org:/tmp/cvs-serv7211

Modified Files:
	zpasswd.py 
Log Message:
NL-terminate the file containing the encrypted password.


=== Zope/zpasswd.py 1.20 => 1.21 ===
--- Zope/zpasswd.py:1.20	Tue Dec 17 14:42:39 2002
+++ Zope/zpasswd.py	Tue Feb 18 14:36:02 2003
@@ -78,7 +78,7 @@
     pw = ''
     for i in range(8):
         pw = pw + random.choice(pw_choices)
-    acfile.write('%s:%s' % (username, generate_passwd(pw, 'SHA')))
+    acfile.write('%s:%s\n' % (username, generate_passwd(pw, 'SHA')))
     acfile.close()
     os.chmod(ac_path, 0644)
     return pw