gavanderhoorn / rossum

A CMake-like build file generator for Fanuc Robotics (Karel) projects.
Apache License 2.0
10 stars 7 forks source link

logger.warn depreciated in python3 #32

Closed kobbled closed 5 years ago

kobbled commented 5 years ago

Logger debug output in python3 is:

DEBUG    | Checking: c:\Users\matt\Programming\Git\Ka-Boost\vendor\KUnit\build\robot.ini
C:\Users\matt\Programming\Fanuc\rossum\\rossum.py:267: DeprecationWarning: The 'warn' method is
deprecated, use 'warning' instead
  "source space".format(ROBOT_INI_NAME))
WARNING  | No robot.ini in CWD, and no alternative provided, trying source space
DEBUG    | Checking: c:\Users\matt\Programming\Git\Ka-Boost\vendor\KUnit\src\robot.ini
INFO     | Found robot.ini in source space
C:\Users\matt\Programming\Fanuc\rossum\\rossum.py:286: DeprecationWarning: The 'warn' method is
deprecated, use 'warning' instead
  "settings!".format(ROBOT_INI_NAME))

this can be fixed by changing 'log.warn' to 'log.warning', but might conflict with python2 instances.

gavanderhoorn commented 5 years ago

See #32.

A quick test shows it works in Python 2 as well (which the docs seem to suggest as well).

Not sure any more why I even used warn(..) in the first place.