Browse Source
EncodedData was setting "converter" and "_encoding" by setting them on the prototype of the object. This was probably done to enable overriding these functions. However, overriding was never actually used anywhere, and setting the __proto__ is deprecated. So I have remove all instances of setting __proto__ for EncodedData-ish classes, and instead just set "convert" and "_encoding" on the object directly.patch-2
Ryan X. Charles
11 years ago
3 changed files with 11 additions and 5 deletions
Loading…
Reference in new issue