mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
Trivial refactoring
This commit is contained in:
parent
956b0eb69d
commit
94c00fd3bc
5 changed files with 5 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ See the file 'LICENSE' for copying permission
|
|||
|
||||
import numbers
|
||||
|
||||
from lib.core.compat import cmp
|
||||
|
||||
class xrange(object):
|
||||
"""
|
||||
Advanced (re)implementation of xrange (supports slice/copy/etc.)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue