/usr/share/shedskin/lib/time.py is in shedskin 0.9.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # Copyright 2005-2011 Mark Dufour and contributors; License Expat (See LICENSE)
timezone = 0
tzname = ("str", "str")
def clock():
return 1.0
def sleep(s):
pass
def time():
return 1.0
class struct_time:
def __init__(self, tuple):
self.tm_year = 0
self.tm_mon = 0
self.tm_mday = 0
self.tm_hour = 0
self.tm_min = 0
self.tm_sec = 0
self.tm_wday = 0
self.tm_yday = 0
self.isdst = 0
def __getitem__(self, n):
return 1
def __repr__(self):
return "str"
def mktime(tuple):
return 1.0
def localtime(timep=None):
return struct_time((1,2,3))
def gmtime(seconds=None):
return struct_time((1,2,3))
def asctime(tuple=None):
return "str"
def ctime(seconds=None):
return "str"
def strftime(format, tuple=None):
return "str"
def strptime(string, format):
return struct_time((1,2,3))
|