소스 검색

use single quotes for uniformity

techgaun 9 년 전
부모
커밋
14da9ae701
4개의 변경된 파일11개의 추가작업 그리고 11개의 파일을 삭제
  1. 3 3
      programs/backup_ver1.py
  2. 3 3
      programs/backup_ver2.py
  3. 2 2
      programs/backup_ver3.py
  4. 3 3
      programs/backup_ver4.py

+ 3 - 3
programs/backup_ver1.py

@@ -28,13 +28,13 @@ if not os.path.exists(target_dir):
     os.mkdir(target_dir)  # make directory
 
 # 5. We use the zip command to put the files in a zip archive
-zip_command = "zip -r {0} {1}".format(target,
+zip_command = 'zip -r {0} {1}'.format(target,
                                       ' '.join(source))
 
 # Run the backup
-print("Zip command is:")
+print('Zip command is:')
 print(zip_command)
-print("Running:")
+print('Running:')
 if os.system(zip_command) == 0:
     print('Successful backup to', target)
 else:

+ 3 - 3
programs/backup_ver2.py

@@ -38,13 +38,13 @@ if not os.path.exists(today):
     print('Successfully created directory', today)
 
 # 5. We use the zip command to put the files in a zip archive
-zip_command = "zip -r {0} {1}".format(target,
+zip_command = 'zip -r {0} {1}'.format(target,
                                       ' '.join(source))
 
 # Run the backup
-print("Zip command is:")
+print('Zip command is:')
 print(zip_command)
-print("Running:")
+print('Running:')
 if os.system(zip_command) == 0:
     print('Successful backup to', target)
 else:

+ 2 - 2
programs/backup_ver3.py

@@ -49,9 +49,9 @@ zip_command = "zip -r {0} {1}".format(target,
                                       ' '.join(source))
 
 # Run the backup
-print("Zip command is:")
+print('Zip command is:')
 print(zip_command)
-print("Running:")
+print('Running:')
 if os.system(zip_command) == 0:
     print('Successful backup to', target)
 else:

+ 3 - 3
programs/backup_ver4.py

@@ -45,13 +45,13 @@ if not os.path.exists(today):
     print('Successfully created directory', today)
 
 # 5. We use the zip command to put the files in a zip archive
-zip_command = "zip -r {0} {1}".format(target,
+zip_command = 'zip -r {0} {1}'.format(target,
                                       ' '.join(source))
 
 # Run the backup
-print("Zip command is:")
+print('Zip command is:')
 print(zip_command)
-print("Running:")
+print('Running:')
 if os.system(zip_command) == 0:
     print('Successful backup to', target)
 else: