forked from chinoogawa/fbht
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandlers.py
More file actions
executable file
·26 lines (21 loc) · 752 Bytes
/
Copy pathhandlers.py
File metadata and controls
executable file
·26 lines (21 loc) · 752 Bytes
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
class signalCaught(Exception):
def __init__(self, *args):
# *args is used to get a list of the parameters passed in
self.args = [a for a in args]
class customCookies():
def __init__(self):
self
def isLogged(self,cj):
for cookie in cj:
if (cookie.name == 'c_user') or (cookie.name == 'checkpoint'):
return True
return False
def checkPoint(self,cj):
for cookie in cj:
if (cookie.name == 'checkpoint'):
print '\r Checkpoint - Error \r',
return True
return False
def signal_handler(signal, frame):
print "\n Aborted by user.\n"
raise signalCaught('Control C')