Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pydtnsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
discus
pydtnsim
Commits
5573e2d7
Commit
5573e2d7
authored
7 years ago
by
Jarrod Pas
Browse files
Options
Downloads
Patches
Plain Diff
Solves pylint warnings
parent
df36001b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!3
Version 0.2
,
!2
Document examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pydtn/__init__.py
+4
-2
4 additions, 2 deletions
pydtn/__init__.py
with
4 additions
and
2 deletions
pydtn/__init__.py
+
4
−
2
View file @
5573e2d7
...
...
@@ -251,7 +251,7 @@ class Buffer:
Can be removed from while being iterated over.
"""
def
__init__
(
self
,
capacity
=
None
,
**
options
):
def
__init__
(
self
,
capacity
=
None
):
"""
Create a buffer.
...
...
@@ -411,17 +411,19 @@ class Node:
Removes the sent packet from the buffer.
"""
# pylint: disable=unused-argument
self
.
buffer
.
remove
(
packet
)
def
send_failure
(
self
,
packet
,
target
):
"""
Call when a send fails.
"""
# pylint: disable=unused-argument
pass
def
packet_expiry
(
self
,
packet
):
"""
Call when a packet expires.
"""
self
.
buffer
.
remove
(
packet
)
def
recv
(
self
,
packet
,
source
=
None
):
def
recv
(
self
,
packet
):
"""
Recieve a packet.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment