equal
deleted
inserted
replaced
347 Used to hide the window opened when starting asynchronous |
347 Used to hide the window opened when starting asynchronous |
348 child process under Windows, unneeded on other systems. |
348 child process under Windows, unneeded on other systems. |
349 """ |
349 """ |
350 pass |
350 pass |
351 |
351 |
|
352 class cachestat(object): |
|
353 def __init__(self, path): |
|
354 self.stat = os.stat(path) |
|
355 |
|
356 def cacheable(self): |
|
357 return bool(self.stat.st_ino) |
|
358 |
|
359 def __eq__(self, other): |
|
360 try: |
|
361 return self.stat == other.stat |
|
362 except AttributeError: |
|
363 return False |
|
364 |
|
365 def __ne__(self, other): |
|
366 return not self == other |
|
367 |
352 def executablepath(): |
368 def executablepath(): |
353 return None # available on Windows only |
369 return None # available on Windows only |