aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorwustho <benawiadha@gmail.com>2019-12-23 06:17:08 +0700
committerwustho <benawiadha@gmail.com>2019-12-23 06:17:08 +0700
commit2dd2bf341f18998165f67c12edd22ce94dae5ac5 (patch)
tree7e81d68524764ff8bbeb8f9fdc9d078192f7c266 /epy.py
parent6ec3e9a013c80d7b82176dc372d71c29afbe1de4 (diff)
downloadepy-2dd2bf341f18998165f67c12edd22ce94dae5ac5.tar.gz
f-string --> string-format.
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/epy.py b/epy.py
index 0b5c59b..18c0061 100755
--- a/epy.py
+++ b/epy.py
@@ -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()