Tim Abbott
fcb63d2028
Add stubs for UserList, UserString, UserDict.
2016-01-27 21:36:47 -08:00
Tim Abbott
5f8358f7e3
Add html_entities import stubs to six.moves.
2016-01-27 21:09:30 -08:00
Tim Abbott
9db84e7ffe
Add stubs for HTMLParser, html.parser, and six.moves.html_parser.
2016-01-27 21:09:30 -08:00
Tim Abbott
8af7ece855
Port unittest stub from python 3 to python 2.7.
...
I did this by taking the python 3 stub, and then reading a diff of
unittest.py between python 2 and python 3 and correcting the
differences.
2016-01-27 16:35:39 -08:00
Tim Abbott
f6a0b8de0c
Expand stub for simplejson module to include decoders/encoders.
2016-01-27 16:35:39 -08:00
Tim Abbott
b30ca8e42b
Add python 2 email.message_from_* stubs (and add types for py3).
2016-01-27 15:46:00 -08:00
Tim Abbott
11e179501a
Add six.moves.urllib stubs using imports.
...
Based on https://github.com/python/typeshed/pull/21 .
2016-01-26 20:25:30 -08:00
Tim Abbott
bcdec9043d
Redo six.moves to be implemented purely using imports.
...
Based on https://github.com/python/typeshed/pull/21 .
2016-01-26 20:25:30 -08:00
Tim Abbott
8f3f56d07f
Add some missing python 3 urllib.parse stubs.
2016-01-26 20:25:30 -08:00
Tim Abbott
9e62b7df06
Add urllib.response stub for Python 3.
2016-01-26 20:25:30 -08:00
Tim Abbott
70eb00d3f2
Fix missing urllib.error ContentTooShortError stub.
2016-01-26 20:25:30 -08:00
Tim Abbott
f036fd05f3
Add stubs for urllib.robotparser.
2016-01-26 20:25:30 -08:00
Tim Abbott
a725360139
Make six.moves into a module.
2016-01-26 20:25:30 -08:00
Tim Abbott
920def0b1e
Fix datetime.timedelta() argument types to be floats.
2016-01-26 16:30:15 -08:00
Tim Abbott
c2555b3119
Port stub for os.walk from python 3 to 2 and cleanup comment.
2016-01-26 16:30:15 -08:00
Tim Abbott
c17d0120a9
Add stubs for traceback.format_exception.
2016-01-26 16:30:15 -08:00
Tim Abbott
55830ec190
Fix type for py2 traceback.format_exc and add to python 3.
2016-01-26 16:30:15 -08:00
Tim Abbott
ddc33a3c7c
Add missing stub for os.exit on python 2.
2016-01-25 16:33:35 -08:00
Tim Abbott
b180914208
Fix os.wait and os.waitpid annotations on python 2.
2016-01-25 16:33:35 -08:00
Tim Abbott
21c90d52b9
Fix re module constant stubs for 2.7.
...
ASCII doesn't exist in 2.7, but UNICODE and TEMPLATE do.
2016-01-25 12:32:31 -08:00
Tim Abbott
c0d0f7fe14
Fix os.environ improperly classified as not mutable for python 2.
...
In Python, you can change the environment by writing to os.environ.
This seems to already be handled correctly in the python 3 type data,
so we just need to fix it for 2.7.
2016-01-22 17:47:53 -08:00