Commit 373b78a5 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Fixes deprecation

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
...@@ -158,7 +158,7 @@ class OhmPi(object): ...@@ -158,7 +158,7 @@ class OhmPi(object):
def get_deprecated_methods(self): def get_deprecated_methods(self):
for i in getmembers(deprecated, isfunction): for i in getmembers(deprecated, isfunction):
self.exec_logger.debug(f'Adding deprecated method {i[0]}.') self.exec_logger.debug(f'Adding deprecated method {i[0]}.')
self.__setattr__(self, i[0], i[1]) setattr(self, i[0], i[1])
@staticmethod @staticmethod
def append_and_save(filename: str, last_measurement: dict, cmd_id=None): def append_and_save(filename: str, last_measurement: dict, cmd_id=None):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment