Преглед на файлове

pep8 for init_homepath

84582af
Dirk Alders преди 1 година
родител
ревизия
bb9b02b79e
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6
    2
      init_homepath

+ 6
- 2
init_homepath Целия файл

@@ -6,6 +6,7 @@ import shutil
6 6
 import subprocess
7 7
 import sys
8 8
 
9
+
9 10
 class bcolors:
10 11
     HEADER = '\033[95m'
11 12
     OKBLUE = '\033[94m'
@@ -17,6 +18,7 @@ class bcolors:
17 18
     BOLD = '\033[1m'
18 19
     UNDERLINE = '\033[4m'
19 20
 
21
+
20 22
 def proceed(ask="Proceed?"):
21 23
     while True:
22 24
         uf = input("\n%s [Y/n/q]" % ask)
@@ -29,13 +31,16 @@ def proceed(ask="Proceed?"):
29 31
     else:
30 32
         return uf.lower() == "y"
31 33
 
34
+
32 35
 def delete_destination():
33 36
     return proceed("/!\\ Delete Destination including ALL files? /!\\")
34 37
 
38
+
35 39
 def failed(error_msg):
36 40
     print("    " + bcolors.WARNING + error_msg.rstrip("\n") + bcolors.ENDC)
37 41
     print("    [" + bcolors.FAIL + " FAILED  " + bcolors.ENDC + "]")
38 42
 
43
+
39 44
 def success():
40 45
     print("    [" + bcolors.OKGREEN + " SUCCESS " + bcolors.ENDC + "]")
41 46
 
@@ -48,7 +53,7 @@ REPOS = (
48 53
 )
49 54
 print("Cloning the following repositories:")
50 55
 for data in REPOS:
51
-	print("    %s --> %s" % data)
56
+    print("    %s --> %s" % data)
52 57
 if proceed():
53 58
     for url, target in REPOS:
54 59
         command = "git clone %s %s" % (url, target)
@@ -114,4 +119,3 @@ if proceed():
114 119
         # Create Symbolic Link
115 120
         os.symlink(src, dest)
116 121
         success()
117
-

Loading…
Отказ
Запис