diff options
Diffstat (limited to '3rdparty/pybind11/tools/libsize.py')
-rw-r--r-- | 3rdparty/pybind11/tools/libsize.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/3rdparty/pybind11/tools/libsize.py b/3rdparty/pybind11/tools/libsize.py index 589c317f..1ac9afbe 100644 --- a/3rdparty/pybind11/tools/libsize.py +++ b/3rdparty/pybind11/tools/libsize.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -from __future__ import print_function, division import os import sys @@ -15,7 +13,7 @@ lib = sys.argv[1] save = sys.argv[2] if not os.path.exists(lib): - sys.exit("Error: requested file ({}) does not exist".format(lib)) + sys.exit(f"Error: requested file ({lib}) does not exist") libsize = os.path.getsize(lib) @@ -30,7 +28,7 @@ if os.path.exists(save): if change == 0: print(" (no change)") else: - print(" (change of {:+} bytes = {:+.2%})".format(change, change / oldsize)) + print(f" (change of {change:+} bytes = {change / oldsize:+.2%})") else: print() |