Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89d13aa

Browse files
committed
Minor update
1 parent 09be7cb commit 89d13aa

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

1919
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
20-
VERSION = "1.3.3.76"
20+
VERSION = "1.3.3.77"
2121
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2222
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2323
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/beautifulsoup/beautifulsoup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ def renderContents(self, encoding=DEFAULT_OUTPUT_ENCODING,
835835
s.append(text)
836836
if prettyPrint:
837837
s.append("\n")
838+
838839
return ''.join(s)
839840

840841
#Soup methods
@@ -1226,8 +1227,8 @@ def __getattr__(self, methodName):
12261227
def isSelfClosingTag(self, name):
12271228
"""Returns true iff the given string is the name of a
12281229
self-closing tag according to this parser."""
1229-
return self.SELF_CLOSING_TAGS.has_key(name) \
1230-
or self.instanceSelfClosingTags.has_key(name)
1230+
return name in self.SELF_CLOSING_TAGS \
1231+
or name in self.instanceSelfClosingTags
12311232

12321233
def reset(self):
12331234
Tag.__init__(self, self, self.ROOT_TAG_NAME)
@@ -1319,7 +1320,7 @@ def _smartPop(self, name):
13191320

13201321
nestingResetTriggers = self.NESTABLE_TAGS.get(name)
13211322
isNestable = nestingResetTriggers != None
1322-
isResetNesting = self.RESET_NESTING_TAGS.has_key(name)
1323+
isResetNesting = name in self.RESET_NESTING_TAGS
13231324
popTo = None
13241325
inclusive = True
13251326
for i in xrange(len(self.tagStack)-1, 0, -1):
@@ -1534,7 +1535,7 @@ class BeautifulSoup(BeautifulStoneSoup):
15341535
BeautifulStoneSoup before writing your own subclass."""
15351536

15361537
def __init__(self, *args, **kwargs):
1537-
if not kwargs.has_key('smartQuotesTo'):
1538+
if 'smartQuotesTo' not in kwargs:
15381539
kwargs['smartQuotesTo'] = self.HTML_ENTITIES
15391540
kwargs['isHTML'] = True
15401541
BeautifulStoneSoup.__init__(self, *args, **kwargs)

0 commit comments

Comments
 (0)