forked from github.com/pypiserver
* minor formatting
This commit is contained in:
parent
02b3802876
commit
38d51dfbce
@ -51,7 +51,10 @@ def main(argv=None):
|
||||
|
||||
if (not config.authenticate and config.password_file != '.' or
|
||||
config.authenticate and config.password_file == '.'):
|
||||
auth_err = "When auth-ops-list is empty (-a=.), password-file (-P=%r) must also be empty ('.')!"
|
||||
auth_err = (
|
||||
"When auth-ops-list is empty (-a=.), password-file (-P=%r) "
|
||||
"must also be empty ('.')!"
|
||||
)
|
||||
sys.exit(auth_err % config.password_file)
|
||||
|
||||
init_logging(
|
||||
|
@ -84,7 +84,7 @@ def create_app(config, packages):
|
||||
app.packages = packages
|
||||
|
||||
class auth(object):
|
||||
"""Apply authentication for the decorated method & action"""
|
||||
"""Apply authentication for the decorated method & action."""
|
||||
|
||||
def __init__(self, action):
|
||||
self.action = action
|
||||
|
Loading…
Reference in New Issue
Block a user