Commit 3bcb9fd6 authored by Tommi Penttinen's avatar Tommi Penttinen
Browse files

Removed Python 3.5 incompatible f-strings

parent 9f6143c0
Pipeline #41846 passed with stage
in 39 seconds
......@@ -5,10 +5,9 @@ import sys
def main():
output_file = sys.argv[1]
print(f"Saving output to {output_file}")
print("Saving output to %" % output_file)
for line in sys.stdin:
print("Gotcha")
entry = f"{ line.strip() },{ datetime.datetime.now().isoformat() }"
entry = line.strip() + ',' + datetime.datetime.now().isoformat()
with open(output_file, 'a') as f:
f.write(entry + '\n')
print(entry)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment