Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light: Remove Python 2 compatibility #4174

Merged
merged 7 commits into from Oct 24, 2022

Commits on Oct 16, 2022

  1. Light: Remove pathlib2 pip package installation reference

    - with dropping Python 2 support from Light pathlib2 pip
    package will not needed anymore
    - instead of pathlib2 Python 3 native pathlib will be used
    
    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    mitzkia authored and Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    1e9a79d View commit details
    Browse the repository at this point in the history
  2. Light: import Path module from pathlib package instead of pathlib2

    - after dropping Python 2 support Path module will be available
    via pathlib package
    
    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    f1eacad View commit details
    Browse the repository at this point in the history
  3. Light: Dropping support for Python 2 usage from tox

    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    mitzkia authored and Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    f87fd32 View commit details
    Browse the repository at this point in the history
  4. Light: Remove Path to string conversion for file manipulations

    - in Python3 we do not need to convert Path objects to string
    
    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    mitzkia authored and Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    ba4332f View commit details
    Browse the repository at this point in the history
  5. Light: Replace time.time() with time.monotonic()

    - in Python3 we can use time.monotonic()
    
    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    mitzkia authored and Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    a224fba View commit details
    Browse the repository at this point in the history
  6. news: add entry for syslog-ng#4174

    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    1f34e16 View commit details
    Browse the repository at this point in the history
  7. Light: Reordering and fixing imports in changed files

    - this is only a style-check fix
    
    Signed-off-by: Andras Mitzki <mitzkia@gmail.com>
    Micek12343 committed Oct 16, 2022
    Configuration menu
    Copy the full SHA
    f0a35d9 View commit details
    Browse the repository at this point in the history