mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-25 14:52:28 +00:00
Stop using .com extension in monorepo
The WIN32 CreateProcess() function does not require an .exe or .com suffix in order to spawn an executable. Now that we have Cosmo bash we're no longer so dependent on the cmd.exe prompt.
This commit is contained in:
parent
c8383f25b4
commit
a6baba1b07
239 changed files with 2092 additions and 2244 deletions
|
@ -19,7 +19,7 @@ __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList',
|
|||
|
||||
# For backwards compatibility, continue to make the collections ABCs
|
||||
# available through the collections module. But don't mandate it, in
|
||||
# cases where we're compiling with PYOBJ.COM.
|
||||
# cases where we're compiling with PYOBJ.
|
||||
try:
|
||||
from _collections_abc import *
|
||||
import _collections_abc
|
||||
|
@ -513,8 +513,8 @@ class Counter(dict):
|
|||
# References:
|
||||
# http://en.wikipedia.org/wiki/Multiset
|
||||
# http://www.gnu.org/software/smalltalk/manual-base/html_node/Bag.html
|
||||
# http://www.demo2s.com/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm
|
||||
# http://code.activestate.com/recipes/259174/
|
||||
# http://www.demo2s/Tutorial/Cpp/0380__set-multiset/Catalog0380__set-multiset.htm
|
||||
# http://code.activestate/recipes/259174/
|
||||
# Knuth, TAOCP Vol. II section 4.6.3
|
||||
|
||||
def __init__(*args, **kwds):
|
||||
|
@ -1246,5 +1246,5 @@ class UserString(Sequence):
|
|||
def upper(self): return self.__class__(self.data.upper())
|
||||
def zfill(self, width): return self.__class__(self.data.zfill(width))
|
||||
|
||||
if __name__ == 'PYOBJ.COM':
|
||||
if __name__ == 'PYOBJ':
|
||||
import _collections
|
||||
|
|
2
third_party/python/Lib/collections/abc.py
vendored
2
third_party/python/Lib/collections/abc.py
vendored
|
@ -1,7 +1,7 @@
|
|||
from _collections_abc import *
|
||||
from _collections_abc import __all__
|
||||
|
||||
if __name__ == 'PYOBJ.COM':
|
||||
if __name__ == 'PYOBJ':
|
||||
AsyncGenerator = 0
|
||||
AsyncIterable = 0
|
||||
AsyncIterator = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue