Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Feb 2, 2019
1 parent 02a4621 commit a03eb17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/pyrsslocal/rss/rss_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,22 @@ def enumerate_stream_from_google_list(file, encoding="utf8"):
The format is the following:
@example(An entry in the XML config file)
@code
<outline text="Freakonometrics"
title="Freakonometrics"
type="rss"
xmlUrl="http://freakonometrics.hypotheses.org/feed"
htmlUrl="http://freakonometrics.hypotheses.org" />
@endcode
@endexample
.. exref::
:title: An entry in the XML config file
::
<outline text="Freakonometrics"
title="Freakonometrics"
type="rss"
xmlUrl="http://freakonometrics.hypotheses.org/feed"
htmlUrl="http://freakonometrics.hypotheses.org" />
"""
with open(file, "r", encoding=encoding) as ff:
for o in xml_filter_iterator(ff, lambda f: True, log=True,
xmlformat=False, fLOG=fLOG):
for oo in o.enumerate_on_tag("outline", recursive=True):
if isinstance(oo, tuple):
if isinstance(oo, tuple): # pylint: disable=R1720
raise ValueError("wrong format file: " + file)
else:
if len(oo.other) == 0 and "xmlUrl" in oo:
Expand Down
2 changes: 1 addition & 1 deletion src/pyrsslocal/xmlhelper/xml_tree_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def _transfer_to_object(self, root=True, exception=True):
# " for field ",
# "/".join(self.get_full_name()))
self._log_error()
if exception:
if exception: # pylint: disable=R1720
raise XmlException("fail to convert value for field '%s' in node '%s'" % (
k, "/".join(self.get_full_name()))) from ex
else:
Expand Down

0 comments on commit a03eb17

Please sign in to comment.