You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wubloader/common/common
Mike Lang 4d3aa94a71 Automatically set default encoding to utf-8 when common is imported
To be clear, this is an awful hack.

It means that any implicit str/unicode coersion will use the utf-8 encoding,
which is basically always what you want.

However, it is possible that some badly-written libraries might be relying
on the default encoding being ascii, and will do weird things as a result.

Finally, it's especially hacky to be doing this as part of importing a library.
Normally you're meant to do this as part of a sitecustomize.py in your python system directory,
and the function is deleted before passing control to normal code (this is why we need
to reload() to get it back).
5 years ago
..
__init__.py Automatically set default encoding to utf-8 when common is imported 5 years ago
database.py DBManager: Don't test connection on start 5 years ago
dateutil.py Audit and fix all usage of dateutil 6 years ago
flask_stats.py comments 5 years ago
googleapis.py sheetsync, cutter: Collect metrics on http calls 5 years ago
requests.py Fix mistakes in common.requests 5 years ago
segments.py Fix issues with metrics gathering for cut functions 5 years ago
stats.py Fix a mistake with allowing reuse of name in @timed() 5 years ago