Skip to content
Snippets Groups Projects

Fix: Convert rid to int

Merged Mikhail Karnevskiy requested to merge fix/mdc_communication into master
2 unresolved threads

@samartse

Run is a string, which should be converted to int to compare with 0.

Loader=yaml.FullLoader is required parameter of the function. Without this parameter a function will give a warning.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
174 174 wf.write(yaml.dump(subconf, default_flow_style=False))
175 175 new_conf = None
176 176 with open(fpath, "r") as rf:
177 existing_conf = yaml.load(rf.read())
177 existing_conf = yaml.load(rf.read(), Loader=yaml.FullLoader)
  • 307 307 flg_order = {"R": 2, "A": 1, "NA": 0}
    308 308
    309 309 for rid, value in combined.items():
    310 if rid==0:
    310 if int(rid)==0:
  • mentioned in commit cad8cdaa

  • Please register or sign in to reply
    Loading