Skip to content

Commit 7645fa5

Browse files
committed
merge
2 parents c1cc56a + a945228 commit 7645fa5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python150k/preprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def collect_data(filename: str,
176176
global error_counter
177177

178178
# Convert Python 2 to Python 3
179-
os.system(f"~/anaconda3/envs/scs/bin/2to3 {filename} -w -n")
179+
os.system(f"~/.conda/envs/scs/bin/2to3 {filename} -w -n")
180180
print("Building AST tree from a filename:", filename)
181181

182182
code = read_file_to_string(filename)
@@ -189,7 +189,7 @@ def collect_data(filename: str,
189189
try:
190190
atok = asttokens.ASTTokens(code, parse=True)
191191
astree = atok.tree
192-
except IndentationError:
192+
except:
193193
print("Files with an error:", error_counter)
194194
error_counter += 1
195195
is_appropriate = False

0 commit comments

Comments
 (0)