On Sun, Nov 10, 2013 at 06:48:30PM -0500, Terry Reedy wrote: > >+ def encode(self,input,errors='strict'): > >+ return codecs.charmap_encode(input,errors,encoding_table) > > You left out the spaces after the call commas (PEP8) Thanks for noting this. This file is programmatically generated by the scripts in Tools/unicode/ . Many of the files in this directory also have similar PEP8 violations: grep -r 'def encode' Lib/encodings/ |grep ',inpu' |less ... Lib/encodings//koi8_r.py: def encode(self,input,errors='strict'): Lib/encodings//koi8_u.py: def encode(self,input,errors='strict'): Lib/encodings//mac_arabic.py: def encode(self,input,errors='strict'): Lib/encodings//mac_centeuro.py: def encode(self,input,errors='strict'): So I'll take a look at fixing the code generator to generate properly formatted code, but it probably isn't worth modifying all of the existing files in Lib/encodings. --amk
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4