This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from __future__ import with_statement | |
import os,stat, pickle | |
class PyCache: | |
file = "/tmp/pycache.tmp" | |
def __init__(self): pass | |
def retrieve(self): | |
try: | |
st = os.stat(self.file) | |
curtime = time.time() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def quote_argument(argument): | |
failure = ('\\', '"', '$', '`', ';') | |
for fail in failure: | |
if(argument.find(fail) != -1): | |
os._exit(255) | |
return argument |
NewerOlder