christopher
commited on
Commit
·
b176a2b
1
Parent(s):
caa7add
Update write_to_filtered_file.py
Browse files
write_to_filtered_file.py
CHANGED
@@ -13,7 +13,6 @@ def tar_file_to_string(file_name):
|
|
13 |
data = data.split("{'url'")
|
14 |
data = [("{'url'" + item) for item in data]
|
15 |
data = data[1:]
|
16 |
-
gc.collect()
|
17 |
return data
|
18 |
|
19 |
if __name__ == '__main__':
|
@@ -28,4 +27,5 @@ if __name__ == '__main__':
|
|
28 |
None
|
29 |
with open(new_file_name, 'wt') as file_new:
|
30 |
for part in b:
|
31 |
-
file_new.write(part + '\
|
|
|
|
13 |
data = data.split("{'url'")
|
14 |
data = [("{'url'" + item) for item in data]
|
15 |
data = data[1:]
|
|
|
16 |
return data
|
17 |
|
18 |
if __name__ == '__main__':
|
|
|
27 |
None
|
28 |
with open(new_file_name, 'wt') as file_new:
|
29 |
for part in b:
|
30 |
+
file_new.write(part + '\
|
31 |
+
')
|