Explorar el Código

Merge pull request #49 from techgaun/master

use single quotes for uniformity
Swaroop C H hace 9 años
padre
commit
6db9cf9319
Se han modificado 4 ficheros con 11 adiciones y 11 borrados
  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: