improve coding style
This commit is contained in:
parent
e4d74e2778
commit
40fcba5edb
10 changed files with 12 additions and 12 deletions
|
@ -2692,7 +2692,7 @@ else:
|
|||
userhome = pwent.pw_dir
|
||||
userhome = userhome.rstrip('/')
|
||||
return (userhome + path[i:]) or '/'
|
||||
elif compat_os_name == 'nt' or compat_os_name == 'ce':
|
||||
elif compat_os_name in ('nt', 'ce'):
|
||||
def compat_expanduser(path):
|
||||
"""Expand ~ and ~user constructs.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue