~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/_walkdirs_win32.pyx

Use global osutils, otherwise it creates a local var.

Which works, but causes us to run the import on every call.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
 
175
175
    def top_prefix_to_starting_dir(self, top, prefix=""):
176
176
        """See DirReader.top_prefix_to_starting_dir."""
 
177
        global osutils
177
178
        if osutils is None:
178
179
            from bzrlib import osutils
179
180
        return (osutils.safe_utf8(prefix), None, None, None,