Skip to content
This repository
Browse code

fixed some pep8 problems, and avoided exec keyword for function

  • Loading branch information...
commit cfffd3ffe6a138f5e5c62a6981264ac24bbae7d3 1 parent 1f224b6
Jonathan Johnson authored April 24, 2012

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  cue.py
7  cue.py
@@ -135,17 +135,18 @@ def run_task(task_name):
135 135
     # - check for task name defined in local project .cuefile
136 136
     # - if not check globally, selecting appropriate group/type
137 137
     # - once initial task is found, dig through recursively until complete and/or stopped
138  
-    def exec(task):
  138
+    def run_exec(task):
139 139
         if type(task) is dict:
140 140
             # run task["exec"]
141 141
             # error? exec(task["onError"])
142 142
             # flow - stop|continue
143  
-
  143
+            pass
144 144
         elif type(task) is str:
145 145
             if task[0] == ':':
146 146
                 run_task(task[1:])
147 147
             else:
148 148
                 # shell, ignoring errors
  149
+                pass
149 150
 
150 151
 if __name__ == '__main__':
151 152
     args = vars(parser.parse_args())
@@ -159,4 +160,4 @@ def exec(task):
159 160
         unregister()
160 161
     else:
161 162
         cuefile = get_cuefile()
162  
-        task(args["task"])
  163
+        run_task(args["task"])

0 notes on commit cfffd3f

Please sign in to comment.
Something went wrong with that request. Please try again.