Commit Graph
46 Commits
Author SHA1 Message Date
David EurestiandJelle Zijlstra ac4cb7a619 Make sys.getfilesystemencoding not return None (#1245)
Fixes #1221
2017-05-05 07:45:10 -07:00
David EurestiandJelle Zijlstra 759da86478 Cleanup six.moves module (#1180)
* Cleanup six.moves

Regenerate files so all imports are present, comment out imports that fail.
Remove useless files.

* Fix flake8
2017-04-21 16:03:19 -07:00
David EurestiandJelle Zijlstra 5ba1a01216 Make webbrowser module unicode friendly in Python 2 (#1159)
* Make webbrowser module unicode friendly in Python 2

* CR changes
2017-04-13 20:15:37 -07:00
David EurestiandJelle Zijlstra 26360e821b Merge stdlib/{2,3}/os/path.pyi (#1150)
* Merge stdlib/{2,3}/os/path.pyi

To be renamed into stdlib/2and3/os/path.pyi later.

Also fixes #50

* CR fixes
2017-04-09 19:27:25 -07:00
David EurestiandJelle Zijlstra a7f87bb006 Merge uuid module into 2and3 (#1148)
* Merge and improve uuid module

* Move uuid into 2and3

* Fix mistyped things, add compare operators
2017-04-09 18:05:03 -07:00
David EurestiandJelle Zijlstra f741429a75 Move socket into 2and3 (#1149)
* Merge socket modules

* Move socket to 2and3
2017-04-07 18:01:33 -07:00
David EurestiandJelle Zijlstra 8bed2fce93 Merge binascii module into 2and3 (#1144)
* Unify binascii module

* Move binascii to 2and3

* CR fixes

* Fix flakes

* Fix flakes better
2017-04-06 21:53:38 -07:00
David EurestiandMatthias Kramm 6e75432504 Merge token module into 2and3 (#1146)
* Merge token module; add values from 3.5

* Move token to 2and3

* Switch to ellipsis for token
2017-04-06 18:46:14 -07:00
David EurestiandMatthias Kramm 8401fc6838 Move __future__ module into 2and3 (#1140)
* Merge __future__

* Move __future__ into 2and3
2017-04-05 13:54:46 -07:00
David EurestiandMatthias Kramm 26f5ffd5ba Add stubs for cmd (#1128) 2017-04-05 13:54:05 -07:00
David EurestiandMatthias Kramm b9616f1517 Merge base64 module into 2and3 (#1141)
* Merge base64 module

* Move base64 into 2and3
2017-04-05 13:51:26 -07:00
David EurestiandMatthias Kramm 47c325c0ae Merge _random into 2and3 (#1134)
* Merge random module

* Move _random into 2and3
2017-04-04 20:14:07 -07:00
David EurestiandMatthias Kramm bc2234dba2 Merge zlib into 2and3 (#1130)
* Fix types and merge zlib.pyi

* Move zlib into 2and3
2017-04-04 20:13:23 -07:00
David EurestiandJelle Zijlstra 56e7aa6b48 Simplify, fix, and merge copy module (#1132)
* Simplify and add missing types for copy module.

Error and error were missing.  I also removed the internal arg memo.

* Move copy module into 2and3

* Bring back internal kwargs
2017-04-04 09:59:25 -07:00
David EurestiandJelle Zijlstra b03e79886e Fix os.getenv and friends to have consistent types (#1131) 2017-04-03 21:21:35 -07:00
David EurestiandJelle Zijlstra 8d3c6b14f6 Move struct into 2and3 (#1129) 2017-04-03 09:37:20 -07:00
David EurestiandJelle Zijlstra 838d1b7436 Add buffer types to struct module. (#1125)
* Add buffer types to struct module.

I noticed these were missing and I made the version look alike for an easy rename into 2and3.

* Add array to WriteBuffer, add iter_unpack

* Code review comments
2017-04-02 15:00:07 -07:00
David EurestiandJelle Zijlstra 341716e63f Merge and rename stdlib/{2,3}/pprint.pyi into 2and3 (#1124)
* Merge stdlib/{2,3}/pprint.pyi

* Rename pprint.pyi into 2and3
2017-03-31 17:47:28 -07:00
David EurestiandJelle Zijlstra 6c3e175c8d Make os.stat_result and friends NamedTuples (#1103) 2017-03-29 10:36:04 -07:00
David EurestiandJelle Zijlstra ec83ed90eb Fix some type errors in os module. (#1101)
* Fix some type errors in os module.

Found these because they were different between Python 2 and 3.

* Code Review changes

* Make it __arg0
2017-03-26 16:39:07 -07:00
David EurestiandJelle Zijlstra 2888b53924 Merge comments between stdlib/{2,3}/os/__init__.pyi to make diffing easier (#1099) 2017-03-25 20:50:21 -07:00
David EurestiandJelle Zijlstra ce3a76bb97 Fix arg types for os.execv* (#1075) 2017-03-22 10:50:15 -07:00
David EurestiandJelle Zijlstra 4ac642bd49 Separate MutableMapping.pop into 2 overloaded methods (#1045)
This makes calls with the default value not return a Union
2017-03-21 22:30:27 -07:00
David EurestiandŁukasz Langa 2fdcd2e9e8 Let MutableMapping.pop take a different default type. (#1044)
This is particularly useful for the idiom `d.pop(k, None)` to remove an item if it exists.

Fixes #278
2017-03-20 12:10:38 -07:00
David EurestiandGuido van Rossum 514bf736da Add stub for ftplib to 2and3 (#956) 2017-03-14 08:22:05 -07:00
David EurestiandMatthias Kramm a1e74b9261 Add stub for filecmp to 2and3 (#955)
* Add stub for filecmp to 2and3

* Fix spacing

* Moar spacing

* Use _SupportsBool

* Code review
2017-03-07 16:36:25 -08:00
David EurestiandMatthias Kramm 63590301f7 Add stubs for py_compile. (#954)
* Add stubs for py_compile.

* Correct Text
2017-03-07 16:35:45 -08:00
David EurestiandŁukasz Langa e3fb935ca4 Move opcode to 2and3 (#938)
* Move opcode to 2and3

* Fix python3 versions

* Fix tests

* Bring Dict back
2017-02-21 14:27:34 -08:00
David EurestiandŁukasz Langa 1260d41cd1 Fix type of IO.writelines. (#949)
This lets you use generators to writelines
2017-02-21 14:25:00 -08:00
David EurestiandŁukasz Langa 8d42a2899a Add configparser and builtins to six (#937)
* Add configparser and builtins to six

* Use 'as' import
2017-02-20 11:38:49 -08:00
David EurestiandŁukasz Langa dbea48fc7a Make 2nd argument to ModuleType an optional kwarg (#941) 2017-02-20 11:10:59 -08:00
David EurestiandGuido van Rossum db84eb7844 Fix hashlib to accept multiple data types (#918) 2017-02-06 17:24:48 -08:00
David EurestiandGuido van Rossum 6eca1a04da Some ssl fixes (#919)
Fix return of wrap_socket.
Add read, write, pending to SSLSocket
Fix argument to socket.setdefaulttimeout
2017-02-06 17:23:22 -08:00
David EurestiandGuido van Rossum 5e5b3726f2 Add missing Optional to str.split and socket.socket. (#504)
* Add Optional to str.split and friends

* Python 3: Make fileno arg of socket.socket Optional
Python 2: Remove fileno arg of socket.socket
2016-08-27 19:09:55 -07:00
David EurestiandMatthias Kramm ed7c0779f7 Add memoryview class for python 2.7 (#493) 2016-08-23 18:48:10 -07:00
David EurestiandGuido van Rossum ff86b1bd26 Remove empty wintypes module which just causes imports to break (#490) 2016-08-22 08:48:33 -07:00
David EurestiandMatthias Kramm 69fdea09c9 Fix some type errors in gettext in python2. (#469)
Also makes it look more like the python3 version
2016-08-15 11:40:16 -07:00
David EurestiandGuido van Rossum 5de7bfe185 Add missing classes to distutils.version (#450) 2016-08-05 14:50:14 -07:00
David EurestiandGuido van Rossum cc8799ee36 Make Future a generic, like in python2 (#449) 2016-08-05 11:57:10 -07:00
David EurestiandMatthias Kramm d760d48f52 Copy string.Formatter to python 3 (#443) 2016-08-05 07:47:23 -07:00
David EurestiandMatthias Kramm a98e9aa651 Enable UF_COMPRESSED and UF_HIDDEN in stat in python3 (#444) 2016-08-05 07:24:16 -07:00
David EurestiandMatthias Kramm 141318c056 Add RemoteError and current_process to multiprocessing (#445) 2016-08-05 07:19:46 -07:00
David EurestiandMatthias Kramm 89091458ed Fix Tuple being imported twice in ast.pyi (#442) 2016-08-05 06:54:01 -07:00
David EurestiandGuido van Rossum 19135832bd Fix a couple of missing and wrong types (typing, six, gettext) (#393)
* Add http_client to six.moves, add missing functions to urllib2 fix some types in gettext

* Add missing View classes to typing.pyi
2016-07-22 12:52:28 -07:00
David EurestiandGuido van Rossum 0bfa0636e1 Add http_client to six.moves, add missing functions to urllib2 fix some types in gettext (#262) 2016-06-04 12:02:55 -07:00
David EurestiandGuido van Rossum 2bb026cd76 Fix type of getsockopt (#213) 2016-05-18 15:30:24 -07:00