subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1742831 - /subversion/trunk/subversion/tests/cmdline/basic_tests.py
Date Sun, 08 May 2016 14:56:05 GMT
Author: stefan2
Date: Sun May  8 14:56:05 2016
New Revision: 1742831

URL: http://svn.apache.org/viewvc?rev=1742831&view=rev
Log:
* subversion/tests/cmdline/basic_tests.py
  (plaintext_password_storage_disabled): Use the open function instead of the
                                         Python 2 -specific file function to
                                         open files.

Modified:
    subversion/trunk/subversion/tests/cmdline/basic_tests.py

Modified: subversion/trunk/subversion/tests/cmdline/basic_tests.py
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/basic_tests.py?rev=1742831&r1=1742830&r2=1742831&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/basic_tests.py (original)
+++ subversion/trunk/subversion/tests/cmdline/basic_tests.py Sun May  8 14:56:05 2016
@@ -3087,12 +3087,12 @@ def plaintext_password_storage_disabled(
   os.mkdir(config_dir_path)
 
   # disable all encryped password stores
-  config_file = file(os.path.join(config_dir_path, "config"), "w")
+  config_file = open(os.path.join(config_dir_path, "config"), "w")
   config_file.write("[auth]\npassword-stores =\n")
   config_file.close()
 
   # disable plaintext password storage
-  servers_file = file(os.path.join(config_dir_path, "servers"), "w")
+  servers_file = open(os.path.join(config_dir_path, "servers"), "w")
   servers_file.write("[global]\nstore-plaintext-passwords=no\n")
   servers_file.close()
   
@@ -3108,7 +3108,7 @@ def plaintext_password_storage_disabled(
   for root, dirs, files, in os.walk(os.path.join(config_dir_path, "auth")):
     for file_name in files:
       path = os.path.join(root, file_name)
-      f = file(path, "r")
+      f = open(path, "r")
       for line in f.readlines():
         if svntest.main.wc_passwd in line:
           f.close()



Mime
View raw message