Ignore:
Timestamp:
Apr 17, 2020, 4:47:44 PM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
692e6f1
Parents:
5d10e8a
Message:

Some Python class methods where actually static methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/settings.py

    r5d10e8a r64cf022  
    8181                return True if not arch else self.target == arch
    8282
    83         @classmethod
    84         def make_canonical(_, arch):
     83        @staticmethod
     84        def make_canonical(arch):
    8585                return Architecture.KnownArchitectures[arch]
    8686
     
    105105                self.total  = Timeouts.check(tg)
    106106
    107         @classmethod
    108         def check(_, value):
     107        @staticmethod
     108        def check(value):
    109109                if value < 1:
    110110                        print("Timeouts must be at least 1 second", file=sys.stderr)
Note: See TracChangeset for help on using the changeset viewer.