Skip to content
Snippets Groups Projects
Commit 3bcb9fd6 authored by Tommi Penttinen's avatar Tommi Penttinen
Browse files

Removed Python 3.5 incompatible f-strings

parent 9f6143c0
No related branches found
No related tags found
No related merge requests found
Pipeline #41846 passed
...@@ -5,10 +5,9 @@ import sys ...@@ -5,10 +5,9 @@ import sys
def main(): def main():
output_file = sys.argv[1] output_file = sys.argv[1]
print(f"Saving output to {output_file}") print("Saving output to %" % output_file)
for line in sys.stdin: for line in sys.stdin:
print("Gotcha") entry = line.strip() + ',' + datetime.datetime.now().isoformat()
entry = f"{ line.strip() },{ datetime.datetime.now().isoformat() }"
with open(output_file, 'a') as f: with open(output_file, 'a') as f:
f.write(entry + '\n') f.write(entry + '\n')
print(entry) print(entry)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment