changing structure of yaml parsing code and adding simple checks
ClosedPublic

Authored by tflink on Feb 5 2014, 8:15 PM.

Details

Summary

some minor changes to how yaml is parsed and adding some simple checks

Test Plan

Some local testing, not much to do until there are runner changes

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
kparal added a comment.Feb 6 2014, 9:36 AM

Looks OK, except for the one inline comment.

libtaskotron/taskyaml.py
5

I'm not sure why this line is present. It is either overwritten in the try: block, or it is never used, because an exception occurs and the return statement is never reached. If you really want to return this value, the return statement must be a part of the finally: block.

But I think we want to throw an exception rather than return 'not parsed' to the caller, right?

kparal requested changes to this revision.Feb 6 2014, 11:58 AM
tflink added a comment.Feb 6 2014, 5:08 PM

I'll update the diff shortly

libtaskotron/taskyaml.py
5

yeah, it made sense when I wrote it. I'll remove the line

tflink updated this revision.Feb 6 2014, 5:10 PM
  • removing not-needed preset of yaml data
kparal accepted this revision.Feb 10 2014, 11:55 AM

OK, looks good.

tflink closed this revision.Feb 10 2014, 8:32 PM

Closed by commit rLTRNa196da5d0174 (authored by @tflink).