Skip to content

Commit

Permalink
Make a method private (related to bobjacobsen#35).
Browse files Browse the repository at this point in the history
  • Loading branch information
Poikilos committed Apr 25, 2024
1 parent 136dbec commit 57710d1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions openlcb/localnodeprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def process(self, message, givenNode=None):
MTI.Optional_Interaction_Rejected):
self.errorMessageReceived(message, node)
else:
self.unrecognizedMTI(message, node)
self._unrecognizedMTI(message, node)
return False

# private method
Expand Down Expand Up @@ -123,11 +123,10 @@ def identifyEventsAddressed(self, message, node):
'''
return

def unrecognizedMTI(self, message, node):
def _unrecognizedMTI(self, message, node):
'''Handle a message with an unrecognized MTI
by returning OptionalInteractionRejected
'''
# FIXME: should be private method. Add _ to start of method name.

# special case of unknown MTI from lower level
unknownAddressed = False
Expand Down

0 comments on commit 57710d1

Please sign in to comment.