~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.py

  • Committer: Robey Pointer
  • Date: 2006-09-08 18:46:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060908184629-e3fc4c61ca21508c
pychecker is on crack; go back to using 'is None'.

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 != None:
 
54
        if ie.text_size is not 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 != None:
 
59
            if v is not 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 == None:
 
95
        if parent_id is None:
96
96
            parent_id = ROOT_ID
97
97
 
98
98
        kind = elt.get('kind')