/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/riodemo.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-02 01:50:36 UTC
  • mfrom: (6973.13.15 python3-l)
  • Revision ID: breezy.the.bot@gmail.com-20180702015036-p7h30yemu44e4p01
Fix more tests on Python3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-l/+merge/348782

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
        s.add(prop_name, prop_value)
19
19
    writer.write_stanza(s)
20
20
 
 
21
 
21
22
def write_inventory(writer, inventory):
22
23
    s = Stanza(inventory_version=7)
23
24
    writer.write_stanza(s)
32
33
            attr_val = getattr(ie, attr, None)
33
34
            if attr == 'executable' and attr_val == 0:
34
35
                continue
35
 
            if attr == 'parent_id' and attr_val == 'TREE_ROOT':
 
36
            if attr == 'parent_id' and attr_val == b'TREE_ROOT':
36
37
                continue
37
38
            if attr_val is not None:
38
39
                s.add(attr, attr_val)