Merge pull request #142 from c-goes/master

replaced is_digit() with isdigit()
pull/143/head
Raphaël Vinot 2017-11-20 16:32:36 +01:00 committed by GitHub
commit ccc08193fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ class PyMISP(object):
:param alert: set to True by default (send alerting email) if False will not send alert
:return publish status
"""
if isinstance(event, int) or (isinstance(event, basestring) and event.is_digit()):
if isinstance(event, int) or (isinstance(event, basestring) and event.isdigit()):
full_event = self._make_mispevent(self.get_event(event))
else:
full_event = self._make_mispevent(event)