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"
|
__copyright__ = "Copyright (C) 2018 Sven Sager"
|
||||||
__license__ = "LGPLv3"
|
__license__ = "LGPLv3"
|
||||||
__name__ = "revpimodio2"
|
__name__ = "revpimodio2"
|
||||||
__version__ = "2.4.2"
|
__version__ = "2.4.5"
|
||||||
|
|
||||||
# Global package values
|
# Global package values
|
||||||
OFF = 0
|
OFF = 0
|
||||||
|
|||||||
@@ -942,7 +942,7 @@ class IntIO(IOBase):
|
|||||||
class IntIOCounter(IntIO):
|
class IntIOCounter(IntIO):
|
||||||
"""Erweitert die IntIO-Klasse um die .reset() Funktion fuer Counter."""
|
"""Erweitert die IntIO-Klasse um die .reset() Funktion fuer Counter."""
|
||||||
|
|
||||||
__slots__ = ("__ioctl_arg", )
|
__slots__ = ("__ioctl_arg",)
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self, counter_id,
|
self, counter_id,
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class RevPiModIO(object):
|
|||||||
replace_io_file_noneok=replace_io_file
|
replace_io_file_noneok=replace_io_file
|
||||||
)
|
)
|
||||||
|
|
||||||
# todo: Remove in next release
|
# TODO: Remove in next release
|
||||||
if direct_output:
|
if direct_output:
|
||||||
warnings.warn(DeprecationWarning(
|
warnings.warn(DeprecationWarning(
|
||||||
"direct_output is deprecated - use shared_procimg instead!"
|
"direct_output is deprecated - use shared_procimg instead!"
|
||||||
@@ -434,14 +434,12 @@ class RevPiModIO(object):
|
|||||||
|
|
||||||
def _get_cpreplaceio(self) -> ConfigParser:
|
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
|
:return: <class 'ConfigParser'> der replace io daten
|
||||||
"""
|
"""
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
|
|
||||||
# TODO: verfeinern!
|
|
||||||
|
|
||||||
if self._replace_io_file:
|
if self._replace_io_file:
|
||||||
try:
|
try:
|
||||||
with open(self._replace_io_file, "r") as fh:
|
with open(self._replace_io_file, "r") as fh:
|
||||||
|
|||||||
Reference in New Issue
Block a user