Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhz committed Aug 28, 2020
1 parent 94a9434 commit 0d1892a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ Quick Start
Installation
------------

To install OSDP, use `pip <https://pip.pypa.io/en/stable/quickstart/>`_ or `pipenv <https://docs.pipenv.org/en/latest/>`_:
To install OSDP, use `pip3 <https://pip.pypa.io/en/stable/quickstart/>`_ or `pipenv <https://docs.pipenv.org/en/latest/>`_:

.. code-block:: console
$ pip install -U osdp
$ pip3 install -U osdp
This module depends on

Expand Down
6 changes: 3 additions & 3 deletions osdp/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def parse_data(reply):
return LocalStatus(tamper, power_failure)

def __repr__(self):
return " Tamper: {0}\nCPower Failure: {1}".format(self.tamper, self.power_failure)
return " Tamper: {0}\nCPower Failure: {1}".format(self.tamper, self.power_failure)


class ReaderTamperStatus(Enum):
Expand Down Expand Up @@ -482,7 +482,7 @@ def __init__(self, reader_number: int, format_code: FormatCode, bit_count: int,
self.data = data

@staticmethod
def parse_data(reply) -> Nak:
def parse_data(reply):
data = reply.extract_reply_data
if len(data) < 4:
raise ValueError("Invalid size for the data")
Expand Down Expand Up @@ -514,7 +514,7 @@ def __init__(self, reader_number: int, bit_count: int, data: bytes):
self.data = data

@staticmethod
def parse_data(reply) -> Nak:
def parse_data(reply):
data = reply.extract_reply_data
if len(data) < 2:
raise ValueError("Invalid size for the data")
Expand Down

0 comments on commit 0d1892a

Please sign in to comment.