Introducing 'new style classes' (idea from Pull request #284)

This commit is contained in:
Miroslav Stampar
2012-12-06 10:42:53 +01:00
parent 0f191f624c
commit b6650add46
13 changed files with 18 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ from lib.request.connect import Connect as Request
from thirdparty.beautifulsoup.beautifulsoup import BeautifulSoup
from thirdparty.oset.pyoset import oset
class Crawler:
class Crawler(object):
"""
This class defines methods used to perform crawling (command
line option '--crawl'

View File

@@ -5,7 +5,7 @@ Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
class _Getch:
class _Getch(object):
"""
Gets a single character from standard input. Does not echo to
the screen (reference: http://code.activestate.com/recipes/134892/)
@@ -22,7 +22,7 @@ class _Getch:
def __call__(self): return self.impl()
class _GetchUnix:
class _GetchUnix(object):
def __init__(self):
import tty
@@ -38,7 +38,7 @@ class _GetchUnix:
return ch
class _GetchWindows:
class _GetchWindows(object):
def __init__(self):
import msvcrt
@@ -47,7 +47,7 @@ class _GetchWindows:
return msvcrt.getch()
class _GetchMacCarbon:
class _GetchMacCarbon(object):
"""
A function which returns the current ASCII key that is down;
if no ASCII key is down, the null string is returned. The

View File

@@ -26,7 +26,7 @@ from lib.core.settings import UNICODE_ENCODING
from lib.core.settings import URI_INJECTABLE_REGEX
from lib.request.basic import decodePage
class Google:
class Google(object):
"""
This class defines methods used to perform Google dorking (command
line option '-g <google dork>'