[svn] commit: r631 - /branches/parkinglot/tools/usr_mgr/usr_mgr.py

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Jan 29 08:12:27 UTC 2010


Author: zhanglikun
Date: Fri Jan 29 08:12:27 2010
New Revision: 631

Log:
Change the format of the user account file.

Modified:
    branches/parkinglot/tools/usr_mgr/usr_mgr.py

Modified: branches/parkinglot/tools/usr_mgr/usr_mgr.py
==============================================================================
--- branches/parkinglot/tools/usr_mgr/usr_mgr.py (original)
+++ branches/parkinglot/tools/usr_mgr/usr_mgr.py Fri Jan 29 08:12:27 2010
@@ -21,7 +21,7 @@
 def check_username(name):
     csvfile = open('passwd.csv')
     ret = 0
-    reader = csv.reader(csvfile, delimiter = "\t", quoting = csv.QUOTE_MINIMAL)
+    reader = csv.reader(csvfile)
     for row in reader:
         if name == row[0]:
             ret = 1
@@ -32,7 +32,7 @@
 
 def save_info(name,pw,salt):
     csvfile = open('passwd.csv', 'a')
-    writer = csv.writer(csvfile, delimiter = "\t", quoting = csv.QUOTE_MINIMAL)
+    writer = csv.writer(csvfile)
     writer.writerow([name, pw, salt])
     csvfile.close()
 




More information about the bind10-changes mailing list