diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2015-07-25 03:38:52 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2017-03-29 13:30:00 +0200 |
commit | 97fb0411763063d5f6163618e5aab2f3700f630f (patch) | |
tree | 521ea2b49d35837a20688c9532696fb60aed3814 /src/lib/Bcfg2/Client/XML.py | |
parent | 306c3dc42b55d6f3925d144c84aae00dbf4439ab (diff) | |
download | bcfg2-97fb0411763063d5f6163618e5aab2f3700f630f.tar.gz bcfg2-97fb0411763063d5f6163618e5aab2f3700f630f.tar.bz2 bcfg2-97fb0411763063d5f6163618e5aab2f3700f630f.zip |
Fix errros with old pylint/pep8
For Python2.4 we need older version of pylint and pep8, that finds some
more errors:
- On python2.4 _ast is not available and pylint uses compiler.ast, that
seems to have some problems with the line numbers if a comment is
following the pylint disable marker.
- In python2.4 there is no xml.etree. But we can ignore this error because
Client.XML tries to find a suitable library.
- Some small formatting issues.
Diffstat (limited to 'src/lib/Bcfg2/Client/XML.py')
-rw-r--r-- | src/lib/Bcfg2/Client/XML.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Client/XML.py b/src/lib/Bcfg2/Client/XML.py index 4ba06abae..93e4facdb 100644 --- a/src/lib/Bcfg2/Client/XML.py +++ b/src/lib/Bcfg2/Client/XML.py @@ -2,7 +2,7 @@ # library will use lxml, then builtin xml.etree, then ElementTree -# pylint: disable=E0611,W0611,W0613,C0103 +# pylint: disable=E0611,E1101,W0611,W0613,C0103 try: from lxml.etree import Element, SubElement, tostring, XMLParser |