~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/win32utils.py

  • Committer: Alexander Belchenko
  • Date: 2009-06-26 07:15:24 UTC
  • mto: (4487.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4488.
  • Revision ID: bialix@ukr.net-20090626071524-xzsm0s61s7mprryv
remove quotes around value only if there is pair of quotes (igc review)

Show diffs side-by-side

added added

removed removed

Lines of Context:
490
490
        return path
491
491
    if type_id == REG_EXPAND_SZ and has_win32api:
492
492
        fullpath = win32api.ExpandEnvironmentStrings(path)
493
 
        if fullpath[0] == '"':
 
493
        if len(fullpath) > 1 and fullpath[0] == '"' and fullpath[-1] == '"':
494
494
            fullpath = fullpath[1:-1]   # remove quotes around value
495
495
        return fullpath
496
496
    return appname