Skip to content

Commit 59a7643

Browse files
committed
Minor fixes
1 parent 6dca2e1 commit 59a7643

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ __pycache__/
1111
# Distribution / packaging
1212
.Python
1313
env/
14-
venv*/
1514
build/
1615
develop-eggs/
1716
dist/

canopen/network.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ def connect(self, *args, **kwargs) -> Network:
120120
# The optional loop parameter goes to can.Notifier()
121121
kwargs_notifier = {}
122122
if "loop" in kwargs:
123-
kwargs_notifier["loop"] = kwargs["loop"]
124-
self.loop = kwargs["loop"]
125-
del kwargs["loop"]
123+
self.loop = kwargs.pop("loop")
124+
kwargs_notifier["loop"] = self.loop
126125
# Register this function as the means to check if canopen is run in
127126
# async mode. This enables the @ensure_not_async() decorator to
128127
# work. See async_guard.py

0 commit comments

Comments
 (0)