Skip to content

Commit

Permalink
add open/close abstract methods, fixes #39
Browse files Browse the repository at this point in the history
  • Loading branch information
zsquareplusc committed Dec 9, 2015
1 parent f662099 commit 5e763ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions serial/serialutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ def __init__(self,

# - - - - - - - - - - - - - - - - - - - - - - - -

def open(self):
"""Opens the Port"""
raise NotImplementedError("This function must be implemented in the subclass")

def close(self):
"""Closes the Port"""
raise NotImplementedError("This function must be implemented in the subclass")

# - - - - - - - - - - - - - - - - - - - - - - - -

@property
def port(self):
"""\
Expand Down

0 comments on commit 5e763ca

Please sign in to comment.