]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't add multiple empty lines at the end of the codec. With this a
authorWalter Dörwald <walter@livinglogic.de>
Fri, 31 Mar 2006 10:13:10 +0000 (10:13 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Fri, 31 Mar 2006 10:13:10 +0000 (10:13 +0000)
regenerated codec should survive reindent.py unchanged.

Tools/unicode/gencodec.py

index a31475e362c53d2cdb8adf67543bc1d592ea87aa..7c7829b495f85c3420163287f34a204f5db1c55d 100644 (file)
@@ -348,7 +348,7 @@ def getregentry():
     l.extend(encoding_map_code)
 
     # Final new-line
-    l.append('\n')
+    l.append('')
 
     return '\n'.join(l).expandtabs()