Skip to content

Commit cbe8cf1

Browse files
authored
Merge branch 'develop' into make-coverage-collection-slightly-faster
2 parents a9b7659 + 77840a3 commit cbe8cf1

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Features
5151
- many different loggers and readers supporting playback: ASC (CANalyzer format), BLF (Binary Logging Format by Vector), CSV, SQLite and Canutils log
5252
- efficient in-kernel or in-hardware filtering of messages on supported interfaces
5353
- bus configuration reading from file or environment variables
54-
- CLI tools for working with CAN busses (see the `docs <https://python-can.readthedocs.io/en/stable/scripts.html>`__)
54+
- CLI tools for working with CAN buses (see the `docs <https://python-can.readthedocs.io/en/stable/scripts.html>`__)
5555
- more
5656

5757

can/interfaces/virtual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _detect_available_configs():
121121
.. note::
122122
123123
This method will run into problems if thousands of
124-
autodetected busses are used at once.
124+
autodetected buses are used at once.
125125
126126
"""
127127
with channels_lock:

can/io/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CSVReader(BaseIOHandler):
7878
format as described there. Assumes that there is a header
7979
and thus skips the first line.
8080
81-
Any line seperator is accepted.
81+
Any line separator is accepted.
8282
"""
8383

8484
def __init__(self, file):

can/io/printer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class Printer(BaseIOHandler, Listener):
1818
"""
1919
The Printer class is a subclass of :class:`~can.Listener` which simply prints
20-
any messages it receives to the terminal (stdout). A message is tunred into a
20+
any messages it receives to the terminal (stdout). A message is turned into a
2121
string using :meth:`~can.Message.__str__`.
2222
2323
:attr bool write_to_file: `True` iff this instance prints to a file instead of

can/io/sqlite.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
log = logging.getLogger('can.io.sqlite')
2222

23-
if sys.version_info.major < 3:
23+
if sys.version_info.major < 3:
2424
# legacy fallback for Python 2
2525
memoryview = buffer
2626

@@ -58,7 +58,7 @@ def __iter__(self):
5858
for frame_data in self._cursor.execute("SELECT * FROM {}".format(self.table_name)):
5959
yield SqliteReader._assemble_message(frame_data)
6060

61-
@staticmethod
61+
@staticmethod
6262
def _assemble_message(frame_data):
6363
timestamp, can_id, is_extended, is_remote, is_error, dlc, data = frame_data
6464
return Message(
@@ -103,7 +103,7 @@ class SqliteWriter(BaseIOHandler, BufferedReader):
103103
:meth:`~can.SqliteWriter.stop()` may take a while.
104104
105105
:attr str table_name: the name of the database table used for storing the messages
106-
:attr int num_frames: the number of frames actally writtem to the database, this
106+
:attr int num_frames: the number of frames actually written to the database, this
107107
excludes messages that are still buffered
108108
:attr float last_write: the last time a message war actually written to the database,
109109
as given by ``time.time()``

can/notifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Notifier(object):
2020
def __init__(self, bus, listeners, timeout=1.0, loop=None):
2121
"""Manages the distribution of :class:`can.Message` instances to listeners.
2222
23-
Supports multiple busses and listeners.
23+
Supports multiple buses and listeners.
2424
2525
.. Note::
2626
@@ -127,7 +127,7 @@ def _on_error(self, exc):
127127
listener.on_error(exc)
128128

129129
def add_listener(self, listener):
130-
"""Add new Listener to the notification list.
130+
"""Add new Listener to the notification list.
131131
If it is already present, it will be called two times
132132
each time a message arrives.
133133

doc/interfaces/ixxat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module, while the following parameters are optional and are interpreted by IXXAT
4646
Internals
4747
---------
4848

49-
The IXXAT :class:`~can.BusABC` object is a farly straightforward interface
49+
The IXXAT :class:`~can.BusABC` object is a fairly straightforward interface
5050
to the IXXAT VCI library. It can open a specific device ID or use the
5151
first one found.
5252

doc/interfaces/nican.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This interface adds support for CAN controllers by `National Instruments`_.
1212

1313
.. warning::
1414

15-
CAN filtering has not been tested throughly and may not work as expected.
15+
CAN filtering has not been tested thoroughly and may not work as expected.
1616

1717

1818
Bus

test/back2back_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# coding: utf-8
33

44
"""
5-
This module tests two virtual busses attached to each other.
5+
This module tests two virtual buses attached to each other.
66
"""
77

88
from __future__ import absolute_import, print_function
99

1010
import sys
1111
import unittest
1212
from time import sleep
13-
from multiprocessing.dummy import Pool as ThreadPool
13+
from multiprocessing.dummy import Pool as ThreadPool
1414

1515
import pytest
1616
import random
@@ -90,7 +90,7 @@ def test_timestamp(self):
9090
recv_msg2 = self.bus1.recv(self.TIMEOUT)
9191
delta_time = recv_msg2.timestamp - recv_msg1.timestamp
9292
self.assertTrue(1.75 <= delta_time <= 2.25,
93-
'Time difference should have been 2s +/- 250ms.'
93+
'Time difference should have been 2s +/- 250ms.'
9494
'But measured {}'.format(delta_time))
9595

9696
def test_standard_message(self):

0 commit comments

Comments
 (0)