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:
25  # no doc string
26  # line too long:
27  return "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"
def longCamelCaseName()
Definition: dirty1.py:24
def another_get(msg, key)
Definition: dirty1.py:8


roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Wed May 1 2019 02:23:59