Functions | |
def | createPickleFile |
Variables | |
string | __author__ = "Aurelija" |
string | __date__ = "$2010-07-26 12.51.12$" |
def pickleFileCreater::createPickleFile | ( | fileName, | |
listRule, | |||
path = os.getcwd() |
|||
) |
Definition at line 8 of file pickleFileCreater.py.
00009 : 00010 00011 dict = {} 00012 00013 try: 00014 for filePath, lines in listRule: 00015 dict[filePath] = lines 00016 file = open(join(path, fileName), 'w') 00017 pickle.dump(dict, file) 00018 file.close() 00019 except TypeError: 00020 print 'Wrong types' 00021 except IOError: 00022 print 'Cannot open %s file'%fileName
string pickleFileCreater::__author__ = "Aurelija" |
Definition at line 1 of file pickleFileCreater.py.
string pickleFileCreater::__date__ = "$2010-07-26 12.51.12$" |
Definition at line 2 of file pickleFileCreater.py.