From 0059490849a24fa005b9b846d2044aa8ffbad8fa Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 14 Apr 2017 23:03:27 +0300 Subject: [PATCH] [mysql2sql] Show the name of the file being converted --- scripts/mysql2sql | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/mysql2sql b/scripts/mysql2sql index 7e29c2e..e63c1fd 100755 --- a/scripts/mysql2sql +++ b/scripts/mysql2sql @@ -32,8 +32,11 @@ def main(infile, encoding, outfile, output_encoding, use_pbar, quoting_style): use_pbar = False if use_pbar: - print("Converting: ", end='', file=sys.stderr) - sys.stderr.flush() + print("Converting", end='', file=sys.stderr) + if infile.name != '': + print(' ' + infile.name, end='', file=sys.stderr) + print(": ", end='', file=sys.stderr) + sys.stderr.flush() if use_pbar: pbar = ttyProgressBar(0, size-1) -- 2.39.5