mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
Trivial refactoring
This commit is contained in:
@@ -58,9 +58,11 @@ class _GetchMacCarbon(object):
|
||||
def __init__(self):
|
||||
import Carbon
|
||||
|
||||
_ = Carbon.Evt # see if it has this (in Unix, it doesn't)
|
||||
getattr(Carbon, "Evt") # see if it has this (in Unix, it doesn't)
|
||||
|
||||
def __call__(self):
|
||||
import Carbon
|
||||
|
||||
if Carbon.Evt.EventAvail(0x0008)[0] == 0: # 0x0008 is the keyDownMask
|
||||
return ''
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user