aclark4life/vanity — pull request #6 by JNRowe (2012-08-08 16:56:56+00:00)
Title: Python 3 compat and locale fix.

Quick change to make `vanity` usable with Python 3 It remains compatible with Python 2.6+, and 2.5 didn't work before anyway.

The second change just ignores failures when attempting to set the locale to `en_US`, many installations won't have it available and users will face a traceback.

I will split these if you only want one or the other, and it makes your life easier.

Thanks,

James

---

While I have your attention it might be nice if the dependency on `requests` wasn't forced until it was actually used. It is probably making your life easier in some way, but it is a pretty hefty chunk of code to depend on when it isn't actually used.