aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/print-ts.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/print-ts.py')
-rwxr-xr-xgdb/testsuite/print-ts.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/print-ts.py b/gdb/testsuite/print-ts.py
index 585eb04..29e053a 100755
--- a/gdb/testsuite/print-ts.py
+++ b/gdb/testsuite/print-ts.py
@@ -38,11 +38,12 @@ import os
if len(sys.argv) > 1:
fmt = sys.argv[1]
else:
- fmt = '[%b %d %H:%M:%S]'
+ fmt = "[%b %d %H:%M:%S]"
mypid = os.getpid()
-for line in fileinput.input('-'):
- sys.stdout.write("{} [{}] {}".format(datetime.datetime.now().strftime(fmt),
- mypid, line))
+for line in fileinput.input("-"):
+ sys.stdout.write(
+ "{} [{}] {}".format(datetime.datetime.now().strftime(fmt), mypid, line)
+ )
sys.stdout.flush()