~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: mbp at sourcefrog
  • Date: 2005-04-06 14:06:32 UTC
  • Revision ID: mbp@sourcefrog.net-20050406140632-b44f572e110216f266a43b71
pychecker fixups

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        fp = fingerprint_file(f)
79
79
        f.seek(0)
80
80
        
81
 
        if ie.text_size is not None:
 
81
        if ie.text_size != None:
82
82
            if ie.text_size != fp['size']:
83
83
                bailout("mismatched size for file %r in %r" % (ie.file_id, self._store),
84
84
                        ["inventory expects %d bytes" % ie.text_size,
121
121
            elif kind == 'file':
122
122
                pumpfile(self.get_file(ie.file_id), file(fullpath, 'wb'))
123
123
            else:
124
 
                bailout("don't know how to export {%s} of kind %r", fid, kind)
 
124
                bailout("don't know how to export {%s} of kind %r" % (fid, kind))
125
125
            mutter("  export {%s} kind %s to %s" % (ie.file_id, kind, fullpath))
126
126
 
127
127