~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-17 13:51:10 UTC
  • mfrom: (4694.2.1 2.1.0b1-no_win_warning)
  • Revision ID: pqm@pqm.ubuntu.com-20090917135110-f7vy8a1pc6sap670
(jam) Skip warning on win32 when _readdir_pyx is not found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1828
1828
            from bzrlib._readdir_pyx import UTF8DirReader
1829
1829
            file_kind_from_stat_mode = UTF8DirReader().kind_from_mode
1830
1830
        except ImportError, e:
1831
 
            failed_to_load_extension(e)
 
1831
            # This is one time where we won't warn that an extension failed to
 
1832
            # load. The extension is never available on Windows anyway.
1832
1833
            from bzrlib._readdir_py import (
1833
1834
                _kind_from_mode as file_kind_from_stat_mode
1834
1835
                )