From 7633078b23afd4443b5a5e0bbd0d6aa815f48792 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 30 Jul 2019 10:27:31 -0700 Subject: [PATCH] f-strings not available in 2.7 --- setup-wxsvg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup-wxsvg.py b/setup-wxsvg.py index 3d4f8ec0..191c3b0f 100644 --- a/setup-wxsvg.py +++ b/setup-wxsvg.py @@ -34,10 +34,10 @@ PACKAGE = 'wx.svg' PACKAGEDIR = 'wx/svg' with open(os.path.join(HERE, PACKAGEDIR, '_version.py'), 'w') as f: - f.write(textwrap.dedent(f"""\ - # Generated from {__file__} - __version__ = '{VERSION}' - """)) + f.write(textwrap.dedent("""\ + # Generated from {} + __version__ = '{}' + """.format(__file__, VERSION))) if have_cython: SOURCE = os.path.join(PACKAGEDIR, '_nanosvg.pyx')