~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-10 15:54:26 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050710155426-fb2d18d7795114de
Switching away from universal newlines,
hopefully we can find a way to prevent mailers from destroying
changesets.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
        if filename is None or filename == '-':
156
156
            f = sys.stdin
157
157
        else:
158
 
            f = open(filename, 'U') # Universal newlines
 
158
            # Actually, we should not use Universal newlines
 
159
            # as this potentially modifies the patch.
 
160
            # though it seems mailers save attachments with their
 
161
            # own format of the files.
 
162
            f = open(filename, 'rb')
159
163
 
160
164
        apply_changeset.apply_changeset(b, f, reverse=reverse,
161
165
                auto_commit=auto_commit)