We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1cc56a + a945228 commit 7645fa5Copy full SHA for 7645fa5
python150k/preprocess.py
@@ -176,7 +176,7 @@ def collect_data(filename: str,
176
global error_counter
177
178
# Convert Python 2 to Python 3
179
- os.system(f"~/anaconda3/envs/scs/bin/2to3 {filename} -w -n")
+ os.system(f"~/.conda/envs/scs/bin/2to3 {filename} -w -n")
180
print("Building AST tree from a filename:", filename)
181
182
code = read_file_to_string(filename)
@@ -189,7 +189,7 @@ def collect_data(filename: str,
189
try:
190
atok = asttokens.ASTTokens(code, parse=True)
191
astree = atok.tree
192
- except IndentationError:
+ except:
193
print("Files with an error:", error_counter)
194
error_counter += 1
195
is_appropriate = False
0 commit comments