~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/patch.py

  • Committer: Martin Pool
  • Date: 2005-09-05 09:11:03 UTC
  • Revision ID: mbp@sourcefrog.net-20050905091103-1e51e146be0f08b4
- add test for deserialization from a canned XML inventory

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
__docformat__ = "restructuredtext"
7
7
 
8
8
def write_to_cmd(args, input=""):
9
 
    if os.name != 'nt':
10
 
        process = Popen(args, bufsize=len(input), stdin=PIPE, stdout=PIPE,
11
 
                        stderr=PIPE, close_fds=True)
12
 
    else:
13
 
        process = Popen(args, bufsize=len(input), stdin=PIPE, stdout=PIPE,
14
 
                        stderr=PIPE)
15
 
 
 
9
    process = Popen(args, bufsize=len(input), stdin=PIPE, stdout=PIPE,
 
10
                    stderr=PIPE, close_fds=True)
16
11
    stdout, stderr = process.communicate(input)
17
12
    status = process.wait()
18
13
    if status < 0: