diff options
author | wustho <benawiadha@gmail.com> | 2019-12-23 06:17:08 +0700 |
---|---|---|
committer | wustho <benawiadha@gmail.com> | 2019-12-23 06:17:08 +0700 |
commit | 2dd2bf341f18998165f67c12edd22ce94dae5ac5 (patch) | |
tree | 7e81d68524764ff8bbeb8f9fdc9d078192f7c266 /epy.py | |
parent | 6ec3e9a013c80d7b82176dc372d71c29afbe1de4 (diff) | |
download | epy-2dd2bf341f18998165f67c12edd22ce94dae5ac5.tar.gz |
f-string --> string-format.
Diffstat (limited to 'epy.py')
-rwxr-xr-x | epy.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,7 +14,7 @@ Options: """ -__version__ = "2019.11.18" +__version__ = "2019.12.23" __license__ = "MIT" __author__ = "Benawi Adha" __url__ = "https://github.com/wustho/epy" @@ -1110,7 +1110,7 @@ def reader(stdscr, ebook, index, width, y, pctg, sect): if CFG["EnableProgressIndicator"]: PROGRESS = (TOTALLOCALPCTG + sum(LOCALPCTG[:y+rows-1])) / TOTALPCTG - PROGRESSTR = f"{int(PROGRESS*100)}%" + PROGRESSTR = "{}%".format(int(PROGRESS*100)) try: stdscr.clear() @@ -1204,7 +1204,7 @@ def main(): loadstate() if len({"-v", "--version", "-V"} & set(args)) != 0: - print(f"Startup file loaded:") + print("Startup file loaded:") print(CFGFILE) print(STATEFILE) print() |