From 65c6238da8bb7cfc5e9af6e04e5a97d845b577c8 Mon Sep 17 00:00:00 2001 From: Raul Cuza Date: Wed, 6 Jul 2011 16:04:47 -0400 Subject: Replace majorver[0:3] with dictionary call. --- tools/export2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/export2.py b/tools/export2.py index 1beb9e628..e487b52e3 100755 --- a/tools/export2.py +++ b/tools/export2.py @@ -114,7 +114,7 @@ E.G. 1.2.0pre1 is a valid version. if options.debug: print "version is %s" % version print "version_info is %s" % version_info - print "version_version is %s" % version_release + print "version_release is %s" % version_release tarname = '/tmp/%s-%s.tar.gz' % (pkgname, version) @@ -186,7 +186,7 @@ E.G. 1.2.0pre1 is a valid version. dryrun=options.dryrun) # update the version in the docs find_and_replace('doc/conf.py', 'version =', - 'version = \'%s\'\n' % majorver[0:3], + 'version = \'%s.%s\'\n' % (version_info['major'], version_info['minor']), startswith=True, dryrun=options.dryrun) find_and_replace('doc/conf.py', 'release =', -- cgit v1.2.3-1-g7c22