Slightly Python 3.x handing of subclasses...

which are created via a call to create a subclass.

Should be more general though.
This commit is contained in:
rocky
2018-04-08 05:22:35 -04:00
parent 61e2b3b635
commit ede6eabc40
7 changed files with 22 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
# From sql/schema.py and 3.5 _strptime.py
# Note that kwargs comes before "positional" args
# Bug was code not knowing which Python versions
# have kwargs coming before positional args in code.
# RUNNABLE!
@@ -68,3 +69,13 @@ def assertRaisesConversion(self, *args):
class BlockingIOError(IOError):
def __init__(self, errno, strerror, characters_written=5):
super().__init__(errno, strerror)
# From urllib/parse.py
# Bug was using a subclass made from a call (to namedtuple)
from collections import namedtuple
class ResultMixin(object):
pass
class SplitResult(namedtuple('SplitResult', 'scheme netloc path query fragment'), ResultMixin):
pass