/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 breezy/win32utils.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
import struct
28
28
import sys
29
29
 
30
 
from bzrlib import (
 
30
from breezy import (
31
31
    cmdline,
32
32
    symbol_versioning,
33
33
    )
34
 
from bzrlib.i18n import gettext
 
34
from breezy.i18n import gettext
35
35
 
36
36
# Windows version
37
37
if sys.platform == 'win32':
121
121
 
122
122
def debug_memory_win32api(message='', short=True):
123
123
    """Use trace.note() to dump the running memory info."""
124
 
    from bzrlib import trace
 
124
    from breezy import trace
125
125
    if has_ctypes:
126
126
        class PROCESS_MEMORY_COUNTERS_EX(ctypes.Structure):
127
127
            """Used by GetProcessMemoryInfo"""
376
376
    symbol_versioning.deprecated_in((2, 5, 0)))
377
377
def _ensure_unicode(s):
378
378
    if s and type(s) != unicode:
379
 
        from bzrlib import osutils
 
379
        from breezy import osutils
380
380
        s = s.decode(osutils.get_user_encoding())
381
381
    return s
382
382
 
437
437
    :param file_list: A list of filenames which may include shell globs.
438
438
    :return: An expanded list of filenames.
439
439
 
440
 
    Introduced in bzrlib 0.18.
 
440
    Introduced in breezy 0.18.
441
441
    """
442
442
    if not file_list:
443
443
        return []
498
498
        try:
499
499
            SetFileAttributes(path, win32file.FILE_ATTRIBUTE_HIDDEN)
500
500
        except pywintypes.error, e:
501
 
            from bzrlib import trace
 
501
            from breezy import trace
502
502
            trace.mutter('Unable to set hidden attribute on %r: %s', path, e)
503
503
 
504
504
 
594
594
 
595
595
        Fallback version that should basically never be needed.
596
596
        """
597
 
        from bzrlib import osutils
 
597
        from breezy import osutils
598
598
        try:
599
599
            return os.environ[key].decode(osutils.get_user_encoding())
600
600
        except KeyError: