aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormorefigs <morefigs@gmail.com>2019-01-22 16:36:20 +1100
committermorefigs <morefigs@gmail.com>2019-01-22 16:36:20 +1100
commit5698e2db62b3b02c32efc130357424ee7b1c0d4c (patch)
tree2278927f5b0424612908bcb022174af36090edf0
parente0ce826bf865a1f92a836e2c9ac9ab8d83be79aa (diff)
downloadpymba-5698e2db62b3b02c32efc130357424ee7b1c0d4c.tar.gz
pymba-5698e2db62b3b02c32efc130357424ee7b1c0d4c.zip
simplify system class
-rw-r--r--pymba/vimba_system.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/pymba/vimba_system.py b/pymba/vimba_system.py
index f4d0c54..407bef6 100644
--- a/pymba/vimba_system.py
+++ b/pymba/vimba_system.py
@@ -1,22 +1,9 @@
-# -*- coding: utf-8 -*-
-from __future__ import absolute_import
from .vimba_object import VimbaObject
-from ctypes import c_void_p
-
-# system features are automatically readable as attributes.
class VimbaSystem(VimbaObject):
-
"""
- A Vimba system object. This class provides the minimal access
- to Vimba functions required to control the system.
+ A Vimba system object. This class provides the minimal access to Vimba functions required to control the system.
"""
-
- # own handle is inherited as self._handle
-
def __init__(self):
- super(VimbaSystem, self).__init__()
-
- # set own handle manually
- self._handle = c_void_p(1)
+ super().__init__(handle=1)