facebookarchive / codemod

Codemod is a tool/library to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention. Codemod was developed at Facebook and released as open source.
Apache License 2.0
4.11k stars 198 forks source link

[base] Fix E731 #69

Closed modocache closed 8 years ago

modocache commented 8 years ago

Use functions instead of assigning lambdas. Apparently this improves tracebacks when something goes wrong. TIL! http://stackoverflow.com/a/25010243/679254