From e0a6f4092b4c55697942b2c7d789639758266c85 Mon Sep 17 00:00:00 2001 From: Stephen Holsapple Date: Fri, 30 Jan 2015 14:49:10 -0800 Subject: [PATCH] Support Python 2.6 This string formatting nicety was introduced in Python 2.7 and breaks Python 2.6 users like myself. This change is forwards and backwards compatible between all Pythons. --- pex/bin/pex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pex/bin/pex.py b/pex/bin/pex.py index 44ef5b49c..e168a8344 100644 --- a/pex/bin/pex.py +++ b/pex/bin/pex.py @@ -54,7 +54,7 @@ def configure_clp(): '%prog builds a PEX (Python Executable) file based on the given specifications: ' 'sources, requirements, their dependencies and other options') - parser = OptionParser(usage=usage, version='%prog {}'.format(__version__)) + parser = OptionParser(usage=usage, version='%prog {0}'.format(__version__)) parser.add_option( '--pypi', '--no-pypi',