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

merge trailing whitespace removal

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
def _get_sh_special_folder_path(csidl):
128
128
    """Call SHGetSpecialFolderPathW if available, or return None.
129
 
    
 
129
 
130
130
    Result is always unicode (or None).
131
131
    """
132
132
    if has_ctypes:
344
344
        return u'./' + path, True
345
345
    else:
346
346
        return path, False
347
 
    
 
347
 
348
348
def _undo_ensure_with_dir(path, corrected):
349
349
    if corrected:
350
350
        return path[2:]
369
369
    import glob
370
370
    expanded_file_list = []
371
371
    for possible_glob in file_list:
372
 
        
 
372
 
373
373
        # work around bugs in glob.glob()
374
374
        # - Python bug #1001604 ("glob doesn't return unicode with ...")
375
375
        # - failing expansion for */* with non-iso-8859-* chars
384
384
        else:
385
385
            glob_files = [_undo_ensure_with_dir(elem, corrected) for elem in glob_files]
386
386
            expanded_file_list += glob_files
387
 
            
388
 
    return [elem.replace(u'\\', u'/') for elem in expanded_file_list] 
 
387
 
 
388
    return [elem.replace(u'\\', u'/') for elem in expanded_file_list]
389
389
 
390
390
 
391
391
def get_app_path(appname):