neutron/neutron/plugins/sriovnicagent
Angus Lees e9cee51e56 Enable pylint checks for "anomalous" string escapes
Escapes in python string literals are well defined, but can be
confusing.  These pylint checks look for backslash escapes in strings
that might be mistakes.  Two code refactors were required to satisfy
these tests:

1. midonet_lib.py used \**kwargs in docstrings.

There doesn't seem to be a sphinx standard for kwargs, so this change
simply replaces them with "kwargs".

2. Regex literals containing escapes replaced with r''.

The assumption with this change (and the underlying pylint
check) is that r'' literals are more straightforward for regular
expressions, where every backslash is important.

While looking at these regexes, this change also removes a few
unnecessary "\-" escapes.

Change-Id: I01528b2482f78b9e851685ebbf6fded4e58355f1
2014-12-23 14:53:02 +11:00
..
common ML2 mechanism driver for SR-IOV capable NIC based switching, Part 2 2014-07-23 10:06:12 +03:00
__init__.py ML2 mechanism driver for SR-IOV capable NIC based switching, Part 2 2014-07-23 10:06:12 +03:00
eswitch_manager.py Enable pylint checks for "anomalous" string escapes 2014-12-23 14:53:02 +11:00
pci_lib.py Remove unnecessary regex grouping 2014-12-23 14:53:02 +11:00
sriov_nic_agent.py Convert several uses of RpcCallback 2014-12-04 16:35:21 +00:00