From: Oleg Broytman Date: Fri, 14 Apr 2017 20:03:27 +0000 (+0300) Subject: [mysql2sql] Show the name of the file being converted X-Git-Tag: 0.1.1~11 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=0059490849a24fa005b9b846d2044aa8ffbad8fa;p=sqlconvert.git [mysql2sql] Show the name of the file being converted --- 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)