dirty1.py
Go to the documentation of this file.
00001 """
00002 .. module:: dirty1
00003 
00004 This Python module should *not* pass ``pylint`` cleanly.
00005 
00006 """
00007 
00008 def another_get(msg, key):
00009     """ Get property value.
00010 
00011     :param msg: Message containing properties.
00012     :param key: Property key to match.
00013 
00014     :returns: Corresponding value, if defined; None otherwise.
00015               Beware: the value may be '', which evaluates False as a
00016               predicate, use ``is not None`` to test for presence.
00017     """
00018     for prop in msg.props:
00019         if prop.key == key:
00020             return prop.value
00021     return None
00022 
00023 # name does not follow PEP-8 convention:
00024 def longCamelCaseName():
00025     # no doc string
00026     # line too long:
00027     return "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"


roslint
Author(s): Mike Purvis, Jack O'Quin
autogenerated on Fri Aug 28 2015 12:41:58