From: Walter Dörwald Date: Fri, 31 Mar 2006 10:13:10 +0000 (+0000) Subject: Don't add multiple empty lines at the end of the codec. With this a X-Git-Tag: v2.5a0~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d23f9a8a33324d00d1e73f40f7c07e914b295f1;p=thirdparty%2FPython%2Fcpython.git Don't add multiple empty lines at the end of the codec. With this a regenerated codec should survive reindent.py unchanged. --- diff --git a/Tools/unicode/gencodec.py b/Tools/unicode/gencodec.py index a31475e362c5..7c7829b495f8 100644 --- a/Tools/unicode/gencodec.py +++ b/Tools/unicode/gencodec.py @@ -348,7 +348,7 @@ def getregentry(): l.extend(encoding_map_code) # Final new-line - l.append('\n') + l.append('') return '\n'.join(l).expandtabs()