Skip to content

Commit

Permalink
Merge #359
Browse files Browse the repository at this point in the history
359: Logger.warn is converted to Logger.warning r=pathunstrom a=arulprabakaran

Logger.warn is converted to Logger.warning

Fixes: #349 

Co-authored-by: Arul Prabakaran <[email protected]>
  • Loading branch information
bors[bot] and arulprabakaran authored Sep 4, 2019
2 parents 6923191 + 53fee1d commit 715f00a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Name | Email | Twitter |
---- | ----- | ------- |
[Laura Hampton](https://github.com/lgh2) | [[email protected]]([email protected]) | [incunabulista](https://twitter.com/incunabulista)
[Dimitris Maroulidis](https://github.com/dmaroulidis) | [[email protected]](mailto:[email protected]) | [dmaroulidis](https://twitter.com/dmaroulidis)
[Jenny Li](https://github.com/imjennyli) |
[Jenny Li](https://github.com/imjennyli) |
[Andrew Schamp](https://github.com/schamp/) | | [schamp](https://twitter.com/schamp)
[Dillon Omane](https://github.com/dillonko) | [Dillon_KO]([email protected])
[Nicolas Braud-Santoni](https://nicolas.braud-santoni.eu) | | |
Expand All @@ -28,3 +28,4 @@ Halle Jones|[email protected]||
[Laura Gutierrez](https://github.com/lauraooq) | [[email protected]]([email protected]) | [lauraooq](https://twitter.com/lauraooqia)
[Pamela McA'Nulty](https://github.com/PamelaM) | | [pmcanulty01](https://twitter.com/pmcanulty01)
[Trenton Mason](https://github.com/BubbsTheSupreme) | <[email protected]> | [BubbsTheSupreme](https://twitter.com/BubbsTheSupreme)
[Arul Prabakaran](https://github.com/arulprabakaran) | [[email protected]]([email protected]) | [arulpraba](https://twitter.com/arulpraba)
2 changes: 1 addition & 1 deletion ppb/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def load(self, timeout: float = None):
Will block until the data is loaded.
"""
if _hint is _default_hint:
logger.warn(f"Waited on {self!r} before the engine began")
logger.warning(f"Waited on {self!r} before the engine began")
self._finished.wait(timeout)
if hasattr(self, '_raise_error'):
raise self._raise_error
Expand Down
2 changes: 1 addition & 1 deletion ppb/systems/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def prepare_resource(self, game_object):
if image is flags.DoNotRender:
return None
if isinstance(image, str):
logger.warn(f"Using string resources is deprecated, use ppb.Image instead. Got {image!r}")
logger.warning(f"Using string resources is deprecated, use ppb.Image instead. Got {image!r}")
image = Image(image)

source_image = image.load()
Expand Down

0 comments on commit 715f00a

Please sign in to comment.