Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix use python>=3.8 done #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions platron/sig_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def __make_flat_params_xml(self, xml_str, parent_name=''):
continue

name = parent_name + child.tag + "{:03d}".format(i)
if self.flat_xml_array.get(name) != None:
if self.flat_xml_array.get(name) is not None:
name = name + '_doubled'

if child.getchildren() != []:
if list(child):
self.__make_flat_params_xml(child, name)
continue

if child.text == None:
if child.text is None:
self.flat_xml_array.update({name: ''})
else:
self.flat_xml_array.update({name: child.text})
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27,py33,py34,py35,py36
envlist = py27,py33,py34,py35,py36,py38
toxworkdir=../tox

[testenv]
Expand Down