[Python-checkins] r86458 - sandbox/trunk/release/release.py
benjamin.peterson
python-checkins at python.org
Sat Nov 13 18:51:07 CET 2010
Author: benjamin.peterson
Date: Sat Nov 13 18:51:07 2010
New Revision: 86458
Log:
don't confuse emacs python highlighting
Modified:
sandbox/trunk/release/release.py
Modified: sandbox/trunk/release/release.py
==============================================================================
--- sandbox/trunk/release/release.py (original)
+++ sandbox/trunk/release/release.py Sat Nov 13 18:51:07 2010
@@ -107,7 +107,7 @@
def tweak_patchlevel(tag, done=False):
print('Updating Include/patchlevel.h...', end=' ')
- template = """\
+ template = '''
#define PY_MAJOR_VERSION\t{tag.major}
#define PY_MINOR_VERSION\t{tag.minor}
#define PY_MICRO_VERSION\t{tag.patch}
@@ -115,7 +115,7 @@
#define PY_RELEASE_SERIAL\t{tag.serial}
/* Version as a string */
-#define PY_VERSION \t\"{tag.text}{plus}\""""
+#define PY_VERSION \t\"{tag.text}{plus}"'''.strip()
level_def = dict(
a = 'PY_RELEASE_LEVEL_ALPHA',
b = 'PY_RELEASE_LEVEL_BETA',
More information about the Python-checkins
mailing list