Spaces:
Runtime error
Runtime error
Commit ·
d8910de
1
Parent(s): c568b1c
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,8 +37,10 @@ class CodeGenerator:
|
|
| 37 |
result = subprocess.run(["flake8", "--count", "temp.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| 38 |
output = result.stdout.decode()
|
| 39 |
error = result.stderr.decode()
|
|
|
|
| 40 |
|
| 41 |
-
return
|
|
|
|
| 42 |
|
| 43 |
def check_code_list(self, code_list):
|
| 44 |
output = ""
|
|
|
|
| 37 |
result = subprocess.run(["flake8", "--count", "temp.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
| 38 |
output = result.stdout.decode()
|
| 39 |
error = result.stderr.decode()
|
| 40 |
+
|
| 41 |
|
| 42 |
+
return result
|
| 43 |
+
#return self._process_output(output, error)
|
| 44 |
|
| 45 |
def check_code_list(self, code_list):
|
| 46 |
output = ""
|