fix pep8 issues

This commit is contained in:
Julien Cigar 2015-09-30 12:28:29 +02:00 committed by rallytime
parent 298cf4f5c0
commit 5eb6a30d40

View File

@ -231,11 +231,12 @@ def enabled(name, **kwargs):
down_file = os.path.join(SERVICE_DIR, name, 'down')
return (
os.path.isfile(run_file)
and os.access(run_file, os.X_OK)
and not os.path.isfile(down_file)
os.path.isfile(run_file) and
os.access(run_file, os.X_OK) and not
os.path.isfile(down_file)
)
def disabled(name):
'''
Return True if the named service is enabled, false otherwise