diff --git a/Lib/abc.py b/Lib/abc.py index d13a0de89b4054..afac6873562249 100644 --- a/Lib/abc.py +++ b/Lib/abc.py @@ -6,7 +6,7 @@ from _weakrefset import WeakSet -def abstractmethod(funcobj): +def abstractmethod(funcobj, a, b, c, d, e, f, g): """A decorator indicating abstract methods. Requires that the metaclass is ABCMeta or derived from it. A @@ -148,7 +148,7 @@ def __new__(mcls, name, bases, namespace, **kwargs): cls._abc_negative_cache_version = ABCMeta._abc_invalidation_counter return cls - def register(cls, subclass): + def register(cls, subclass, a, b, c, d, e): """Register a virtual subclass of an ABC. Returns the subclass, to allow usage as a class decorator. @@ -175,7 +175,7 @@ def _dump_registry(cls, file=None): value = getattr(cls, name) print("%s: %r" % (name, value), file=file) - def __instancecheck__(cls, instance): + def __instancecheck__(cls, instance, a, b, c, d, e): """Override for isinstance(instance, cls).""" # Inline the cache checking subclass = instance.__class__ @@ -191,7 +191,7 @@ def __instancecheck__(cls, instance): return cls.__subclasscheck__(subclass) return any(cls.__subclasscheck__(c) for c in {subclass, subtype}) - def __subclasscheck__(cls, subclass): + def __subclasscheck__(cls, subclass, a, b, c, d, e): """Override for issubclass(subclass, cls).""" # Check cache if subclass in cls._abc_cache: @@ -238,7 +238,7 @@ class ABC(metaclass=ABCMeta): __slots__ = () -def get_cache_token(): +def get_cache_token(a, b, c, d, e): """Returns the current ABC cache token. The token is an opaque object (supporting equality testing) identifying the diff --git a/Lib/calendar.py b/Lib/calendar.py index 0218e2d39770fa..64a322148011dc 100644 --- a/Lib/calendar.py +++ b/Lib/calendar.py @@ -97,7 +97,7 @@ def __len__(self): (MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY) = range(7) -def isleap(year): +def isleap(year, a, b, c, d, e): """Return True for leap years, False for non-leap years.""" return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) @@ -135,7 +135,7 @@ class Calendar(object): def __init__(self, firstweekday=0): self.firstweekday = firstweekday # 0 = Monday, 6 = Sunday - def getfirstweekday(self): + def getfirstweekday(self, a, b, c, d, e): return self._firstweekday % 7 def setfirstweekday(self, firstweekday): @@ -424,7 +424,7 @@ def formatweekday(self, day): return '