[Python-checkins] r84536 - sandbox/trunk/release/release.py

Georg Brandl g.brandl at gmx.net
Wed Sep 8 09:41:16 CEST 2010


Am 07.09.2010 23:58, schrieb Barry Warsaw:
> On Sep 05, 2010, at 08:28 PM, georg.brandl wrote:
> 
>>Author: georg.brandl
>>Date: Sun Sep  5 20:28:46 2010
>>New Revision: 84536
>>
>>Log:
>>Fix after changing NEWS layout.
>>
>>Modified:
>>   sandbox/trunk/release/release.py
>>
>>Modified: sandbox/trunk/release/release.py
>>==============================================================================
>>--- sandbox/trunk/release/release.py	(original)
>>+++ sandbox/trunk/release/release.py	Sun Sep  5 20:28:46 2010
>>@@ -396,13 +396,13 @@
>>     with open('Misc/NEWS', encoding="utf-8") as fp:
>>         lines = fp.readlines()
>>     for i, line in enumerate(lines):
>>-        if line.startswith("(editors"):
>>+        if line.startswith("Python News"):
>>             start = i
>>         if line.startswith("What's"):
>>             end = i
>>             break
>>     with open('Misc/NEWS', 'w', encoding="utf-8") as fp:
>>-         fp.writelines(lines[:start+1])
>>+         fp.writelines(lines[:start+2])
>>          fp.write(NEWS_TEMPLATE)
>>          fp.writelines(lines[end-1:])
>>     print("Please fill in the the name of the next version.")
> 
> Will this still work with the Python 2.7 NEWS file?

I intended to backport my removal of NEWS.help, so yes.

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-checkins mailing list