Main Page
Namespaces
Classes
Files
File List
tests
dirty1.py
Go to the documentation of this file.
1
"""
2
.. module:: dirty1
3
4
This Python module should *not* pass ``pylint`` cleanly.
5
6
"""
7
8
def
another_get
(msg, key):
9
""" Get property value.
10
11
:param msg: Message containing properties.
12
:param key: Property key to match.
13
14
:returns: Corresponding value, if defined; None otherwise.
15
Beware: the value may be '', which evaluates False as a
16
predicate, use ``is not None`` to test for presence.
17
"""
18
for
prop
in
msg.props:
19
if
prop.key == key:
20
return
prop.value
21
return
None
22
23
# name does not follow PEP-8 convention:
24
def
longCamelCaseName
():
25
# no doc string
26
# line too long:
27
return
"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
dirty1.longCamelCaseName
def longCamelCaseName()
Definition:
dirty1.py:24
dirty1.another_get
def another_get(msg, key)
Definition:
dirty1.py:8
roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Wed Mar 18 2020 03:20:56