mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 22:03:53 +01:00
Cleanup and new version number
This commit is contained in:
@@ -21,7 +21,7 @@ __author__ = "Sven Sager <akira@revpimodio.org>"
|
||||
__copyright__ = "Copyright (C) 2018 Sven Sager"
|
||||
__license__ = "LGPLv3"
|
||||
__name__ = "revpimodio2"
|
||||
__version__ = "2.4.2"
|
||||
__version__ = "2.4.5"
|
||||
|
||||
# Global package values
|
||||
OFF = 0
|
||||
|
||||
@@ -942,7 +942,7 @@ class IntIO(IOBase):
|
||||
class IntIOCounter(IntIO):
|
||||
"""Erweitert die IntIO-Klasse um die .reset() Funktion fuer Counter."""
|
||||
|
||||
__slots__ = ("__ioctl_arg", )
|
||||
__slots__ = ("__ioctl_arg",)
|
||||
|
||||
def __init__(
|
||||
self, counter_id,
|
||||
|
||||
@@ -68,7 +68,7 @@ class RevPiModIO(object):
|
||||
replace_io_file_noneok=replace_io_file
|
||||
)
|
||||
|
||||
# todo: Remove in next release
|
||||
# TODO: Remove in next release
|
||||
if direct_output:
|
||||
warnings.warn(DeprecationWarning(
|
||||
"direct_output is deprecated - use shared_procimg instead!"
|
||||
@@ -434,14 +434,12 @@ class RevPiModIO(object):
|
||||
|
||||
def _get_cpreplaceio(self) -> ConfigParser:
|
||||
"""
|
||||
Laed die replace_io_file Konfiguration und verarbeitet sie.
|
||||
Laedt die replace_io_file Konfiguration und verarbeitet sie.
|
||||
|
||||
:return: <class 'ConfigParser'> der replace io daten
|
||||
"""
|
||||
cp = ConfigParser()
|
||||
|
||||
# TODO: verfeinern!
|
||||
|
||||
if self._replace_io_file:
|
||||
try:
|
||||
with open(self._replace_io_file, "r") as fh:
|
||||
|
||||
Reference in New Issue
Block a user