~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.py

  • Committer: Alexander Belchenko
  • Date: 2006-07-31 16:12:57 UTC
  • mto: (1711.2.111 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060731161257-91a231523255332c
new official bzr.ico

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        e.set('file_id', ie.file_id)
52
52
        e.set('kind', ie.kind)
53
53
 
54
 
        if ie.text_size is not None:
 
54
        if ie.text_size != None:
55
55
            e.set('text_size', '%d' % ie.text_size)
56
56
 
57
57
        for f in ['text_id', 'text_sha1', 'symlink_target']:
58
58
            v = getattr(ie, f)
59
 
            if v is not None:
 
59
            if v != None:
60
60
                e.set(f, v)
61
61
 
62
62
        # to be conservative, we don't externalize the root pointers
92
92
        ## nodes in the root directory, but it's cleaner to use one
93
93
        ## internally.
94
94
        parent_id = elt.get('parent_id')
95
 
        if parent_id is None:
 
95
        if parent_id == None:
96
96
            parent_id = ROOT_ID
97
97
 
98
98
        kind = elt.get('kind')