mirror of
https://github.com/fjosw/pyerrors.git
synced 2026-04-03 17:17:26 +02:00
[Fix] Ruff rules and more precise Excpetion types (#248)
* [Fix] Fix test for membership should be 'not in' (E713) * [Fix] Fix module imported but unused (F401) * [Fix] More precise Exception types in dirac, obs and correlator
This commit is contained in:
parent
d908508120
commit
3eac9214b4
11 changed files with 144 additions and 144 deletions
|
|
@ -79,7 +79,7 @@ def _dict_to_xmlstring_spaces(d, space=' '):
|
|||
o += space
|
||||
o += li + '\n'
|
||||
if li.startswith('<') and not cm:
|
||||
if not '<%s' % ('/') in li:
|
||||
if '<%s' % ('/') not in li:
|
||||
c += 1
|
||||
cm = False
|
||||
return o
|
||||
|
|
@ -671,7 +671,7 @@ def _dobsdict_to_xmlstring_spaces(d, space=' '):
|
|||
o += space
|
||||
o += li + '\n'
|
||||
if li.startswith('<') and not cm:
|
||||
if not '<%s' % ('/') in li:
|
||||
if '<%s' % ('/') not in li:
|
||||
c += 1
|
||||
cm = False
|
||||
return o
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue