~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.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:
1086
1086
def create_by_entry(tt, entry, tree, trans_id, lines=None, mode_id=None):
1087
1087
    """Create new file contents according to an inventory entry."""
1088
1088
    if entry.kind == "file":
1089
 
        if lines == None:
 
1089
        if lines is None:
1090
1090
            lines = tree.get_file(entry.file_id).readlines()
1091
1091
        tt.create_file(lines, trans_id, mode_id=mode_id)
1092
1092
    elif entry.kind == "symlink":