Skip to content
Snippets Groups Projects
Commit c6fa3b78 authored by Kentaro Wada's avatar Kentaro Wada
Browse files

logger.warn -> logger.warning

parent aeed5317
Branches
No related tags found
No related merge requests found
...@@ -89,13 +89,13 @@ class LabelFile(object): ...@@ -89,13 +89,13 @@ class LabelFile(object):
data = json.load(f) data = json.load(f)
version = data.get("version") version = data.get("version")
if version is None: if version is None:
logger.warn( logger.warning(
"Loading JSON file ({}) of unknown version".format( "Loading JSON file ({}) of unknown version".format(
filename filename
) )
) )
elif version.split(".")[0] != __version__.split(".")[0]: elif version.split(".")[0] != __version__.split(".")[0]:
logger.warn( logger.warning(
"This JSON file ({}) may be incompatible with " "This JSON file ({}) may be incompatible with "
"current labelme. version in file: {}, " "current labelme. version in file: {}, "
"current version: {}".format( "current version: {}".format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment