Lines 55-61
Link Here
|
55 |
head, tail = name[:-3], name[-3:] |
55 |
head, tail = name[:-3], name[-3:] |
56 |
if tail == '.py': |
56 |
if tail == '.py': |
57 |
cfile = fullname + (__debug__ and 'c' or 'o') |
57 |
cfile = fullname + (__debug__ and 'c' or 'o') |
58 |
ftime = os.stat(fullname).st_mtime |
58 |
fstat = os.stat(fullname) |
|
|
59 |
ftime = max(fstat.st_mtime, fstat.st_ctime) |
59 |
try: ctime = os.stat(cfile).st_mtime |
60 |
try: ctime = os.stat(cfile).st_mtime |
60 |
except os.error: ctime = 0 |
61 |
except os.error: ctime = 0 |
61 |
if (ctime > ftime) and not force: continue |
62 |
if (ctime > ftime) and not force: continue |