/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2010-03-03 09:13:32 UTC
  • mto: (4634.141.1 2.0-integration)
  • mto: This revision was merged to the branch mainline in revision 5075.
  • Revision ID: v.ladeuil+lp@free.fr-20100303091332-erhfmr3mm9ikoteb
Fix some typos and add a NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2009 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
1913
1913
 
1914
1914
if sys.platform == 'win32':
1915
1915
    def open_file(filename, mode='r', bufsize=-1):
1916
 
        """This function works like builtin ``open``. But use O_NOINHERIT
1917
 
        flag so file handle is not inherited to child process.
1918
 
        So deleting or renaming closed file that opened with this function
1919
 
        is not blocked by child process.
 
1916
        """This function is used to override the ``open`` builtin.
 
1917
        
 
1918
        But it uses O_NOINHERIT flag so the file handle is not inherited by
 
1919
        child processes.  Deleting or renaming a closed file opened with this
 
1920
        function is not blocking child processes.
1920
1921
        """
1921
1922
        writing = 'w' in mode
1922
1923
        appending = 'a' in mode