diff --git a/progit/__init__.py b/progit/__init__.py index 55eb9fd..d1034ad 100644 --- a/progit/__init__.py +++ b/progit/__init__.py @@ -166,7 +166,7 @@ def generate_authorized_key_file(): row = 'command="/usr/bin/gl-auth-command %s",' \ 'no-port-forwarding,no-X11-forwarding,'\ 'no-agent-forwarding,no-pty %s' % ( - user.user, user.public_ssh_key) + user.user, user.public_ssh_key) stream.write(row + '\n') stream.write('# gitolite end\n') diff --git a/progit/hooks/__init__.py b/progit/hooks/__init__.py index a877614..2f17749 100644 --- a/progit/hooks/__init__.py +++ b/progit/hooks/__init__.py @@ -34,4 +34,3 @@ class BaseHook(object): ''' pass - diff --git a/progit/plugins.py b/progit/plugins.py index 9162f47..04ab580 100644 --- a/progit/plugins.py +++ b/progit/plugins.py @@ -47,7 +47,8 @@ def get_plugin(plugin_name): @APP.route('//settings/', methods=('GET', 'POST')) -@APP.route('/fork///settings/', methods=('GET', 'POST')) +@APP.route('/fork///settings/', + methods=('GET', 'POST')) @cla_required def view_plugin(repo, plugin, username=None): """ Presents the settings of the project. diff --git a/progit/repo.py b/progit/repo.py index 891e847..1887500 100644 --- a/progit/repo.py +++ b/progit/repo.py @@ -108,7 +108,7 @@ def view_repo_branch(repo, branchname, username=None): reponame = os.path.join(APP.config['FORK_FOLDER'], repo.path) repo_obj = pygit2.Repository(reponame) - if not branchname in repo_obj.listall_branches(): + if branchname not in repo_obj.listall_branches(): flask.abort(404, 'Branch no found') branch = repo_obj.lookup_branch(branchname) @@ -171,7 +171,7 @@ def view_log(repo, branchname=None, username=None): reponame = os.path.join(APP.config['FORK_FOLDER'], repo.path) repo_obj = pygit2.Repository(reponame) - if branchname and not branchname in repo_obj.listall_branches(): + if branchname and branchname not in repo_obj.listall_branches(): flask.abort(404, 'Branch no found') if branchname: