(self, args)
Enables a hook. hook [function]
Enables a hook. hook [function]
Enables a hook . hook [ function ]
def do_hook(self, args):
		"""Enables a hook. hook [function]"""
		print "Hooking " + args + " ..."
		self.HOOKS.append(args)

		result = '\n'.join(read_entirely(self.HOOK_DICT[file]) for file in self.HOOKS)

		with open('Swizzler2.js', 'w') as handle:
			handle.write(result)

		print "\nHooks Active: " + ', '.join(self.HOOKS)
def do_hook ( self , args ) : print "Hooking " + args + " ..." self . HOOKS . append ( args ) result = '\n' . join ( read_entirely ( self . HOOK_DICT [ file ] ) for file in self . HOOKS ) with open ( 'Swizzler2.js' , 'w' ) as handle : handle . write ( result ) print "\nHooks Active: " + ', ' . join ( self . HOOKS )