From 1c278a4fb20da9f82e87f75092d349375e93dfb3 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 22 2015 14:27:32 +0000 Subject: Couple of small pep8 fixes --- diff --git a/pagure/api/project.py b/pagure/api/project.py index a568557..d5a272b 100644 --- a/pagure/api/project.py +++ b/pagure/api/project.py @@ -150,6 +150,6 @@ def api_projects(): 404, error_code=APIERROR.ENOPROJECTS) jsonout = flask.jsonify({ - 'projects': [ p.to_json(api=True, public=True) for p in projects] + 'projects': [p.to_json(api=True, public=True) for p in projects] }) return jsonout diff --git a/pagure/lib/model.py b/pagure/lib/model.py index f5cd459..0d974c6 100644 --- a/pagure/lib/model.py +++ b/pagure/lib/model.py @@ -828,7 +828,7 @@ class PullRequest(BASE): ''' Return whether the current PullRequest is a remote pull-request or not. ''' - return not self.remote_git is None + return self.remote_git is not None def to_json(self, public=False, api=False): ''' Returns a dictionnary representation of the pull-request.