diff --git a/client/powerline.py b/client/powerline.py index a00c38cd..89e56f8e 100755 --- a/client/powerline.py +++ b/client/powerline.py @@ -17,7 +17,7 @@ use_filesystem = 'darwin' in platform # use_filesystem = True del platform -address = ('/tmp/powerline-ipc-%d' if use_filesystem else '\0powerline-ipc-%d')%os.getuid() +address = ('/tmp/powerline-ipc-%d' if use_filesystem else '\0powerline-ipc-%d') % os.getuid() sock = socket.socket(family=socket.AF_UNIX) diff --git a/scripts/powerline-daemon b/scripts/powerline-daemon index b7627cc4..e110625f 100755 --- a/scripts/powerline-daemon +++ b/scripts/powerline-daemon @@ -324,8 +324,8 @@ def lockpidfile(): import fcntl import atexit import stat - fd = os.open(pidfile, os.O_WRONLY|os.O_CREAT, - stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IROTH) + fd = os.open(pidfile, os.O_WRONLY | os.O_CREAT, + stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH) try: fcntl.lockf(fd, fcntl.LOCK_EX | fcntl.LOCK_NB) except EnvironmentError: