mirror of
https://github.com/powerline/powerline.git
synced 2025-07-26 07:16:31 +02:00
Some style fixes
This commit is contained in:
parent
3b060562e2
commit
95dcef8bf8
@ -17,7 +17,7 @@ use_filesystem = 'darwin' in platform
|
|||||||
# use_filesystem = True
|
# use_filesystem = True
|
||||||
del platform
|
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)
|
sock = socket.socket(family=socket.AF_UNIX)
|
||||||
|
|
||||||
|
@ -324,8 +324,8 @@ def lockpidfile():
|
|||||||
import fcntl
|
import fcntl
|
||||||
import atexit
|
import atexit
|
||||||
import stat
|
import stat
|
||||||
fd = os.open(pidfile, os.O_WRONLY|os.O_CREAT,
|
fd = os.open(pidfile, os.O_WRONLY | os.O_CREAT,
|
||||||
stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IROTH)
|
stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||||
try:
|
try:
|
||||||
fcntl.lockf(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
fcntl.lockf(fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||||
except EnvironmentError:
|
except EnvironmentError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user