mccullerlp / python-declarative

Declarative Class Programming for Python
Other
14 stars 3 forks source link

Compatibility support for python2 warning #3

Open eagoetz opened 3 years ago

eagoetz commented 3 years ago

When running a test-suite using pytest for a package that has dependency for python-declarative (via dttxml), I receive the following warning:

=============================== warnings summary ===============================
../../opt/miniconda3/lib/python3.7/site-packages/declarative/utilities/representations.py:8
  /Users/egoetz/opt/miniconda3/lib/python3.7/site-packages/declarative/utilities/representations.py:8: DeprecationWarning: Compatibility support for python2 has been dropped
    from ..utilities.future_from_2 import repr_compat

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================= 5 passed, 1 warning in 1.20s =========================

I python-declarative is installed via PyPI, version 1.3.0, running in a conda environment python-3.7.

Perhaps it's not a critical problem, but it may be worth taking a look since python2 is no longer supported.

mccullerlp commented 3 years ago

Thanks, I must have screwed up the logic to print the warning only on py2. I'll fix it and push a point update soon.