Lichen

lib/time.py

90:c7ddfc4525da
2016-10-08 Paul Boddie Added some support for eliminating accessor class types where the provided attributes are invoked and are unbound methods. This uses a more sophisticated method involving usage observations that incorporate invocation information, permitting classes as accessors if paths through the code support them, even if other paths require instances as accessors to invoke methods.
     1 #!/usr/bin/env python     2      3 class struct_time(tuple):     4     pass     5      6 def asctime(t=None):     7     pass     8      9 def clock():    10     pass    11     12 def ctime(seconds):    13     pass    14     15 def gmtime(seconds=None):    16     pass    17     18 def localtime(seconds=None):    19     pass    20     21 def mktime(t):    22     pass    23     24 def sleep(seconds):    25     pass    26     27 def strftime(format, t=None):    28     pass    29     30 def strptime(s, format):    31     pass    32     33 def time():    34     pass    35     36 def tzset():    37     pass    38     39 # vim: tabstop=4 expandtab shiftwidth=4