Skip to content

Commit

Permalink
__root__: replaced all references to the deprecated logging.warn fu…
Browse files Browse the repository at this point in the history
…nction with the correctly named `logging.warning` function.
  • Loading branch information
arizvisa committed Dec 4, 2020
1 parent d093e61 commit 8c07de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __root__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def __version__():
# the user about this.
except NameError:
TIMEOUT = 5
__import__('logging').warn("Unable to add notification for idaapi.NW_INITIDA ({:d}). Registering a {:.1f} second timer to setup hooks...".format(idaapi.NW_INITIDA, TIMEOUT))
__import__('logging').warning("Unable to add notification for idaapi.NW_INITIDA ({:d}). Registering a {:.1f} second timer to setup hooks...".format(idaapi.NW_INITIDA, TIMEOUT))
idaapi.register_timer(TIMEOUT, __import__('hooks').ida_is_busy_sucking_cocks)
del(TIMEOUT)

Expand All @@ -134,4 +134,4 @@ def __version__():

# Installing the termination hook failed, but it's not really too important...
except NameError:
__import__('logging').warn("Unable to add notification for idaapi.NW_TERMIDA ({:d}).".format(idaapi.NW_TERMIDA))
__import__('logging').warning("Unable to add notification for idaapi.NW_TERMIDA ({:d}).".format(idaapi.NW_TERMIDA))

0 comments on commit 8c07de8

Please sign in to comment.