improve coding style

This commit is contained in:
Remita Amine 2017-04-12 20:38:43 +01:00
parent e4d74e2778
commit 40fcba5edb
10 changed files with 12 additions and 12 deletions

View file

@ -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.