Strip whitespace from ALL the things.
This commit is contained in:
parent
f6dd8b0a4d
commit
716d7a737b
171 changed files with 807 additions and 807 deletions
|
@ -48,7 +48,7 @@ class RedisBuildLogs(object):
|
|||
return self._redis.rpush(self._logs_key(build_id), json.dumps(log_obj)) - 1
|
||||
|
||||
def get_log_entries(self, build_id, start_index):
|
||||
"""
|
||||
"""
|
||||
Returns a tuple of the current length of the list and an iterable of the
|
||||
requested log entries.
|
||||
"""
|
||||
|
|
|
@ -25,4 +25,4 @@ def downgrade(tables):
|
|||
(tables.logentrykind.delete()
|
||||
.where(tables.logentrykind.c.name == op.inline_literal('repo_verb')))
|
||||
|
||||
)
|
||||
)
|
||||
|
|
|
@ -71,7 +71,7 @@ def upgrade(tables):
|
|||
op.create_index('repositorynotification_repository_id', 'repositorynotification', ['repository_id'], unique=False)
|
||||
op.create_index('repositorynotification_uuid', 'repositorynotification', ['uuid'], unique=False)
|
||||
op.add_column(u'notification', sa.Column('dismissed', sa.Boolean(), nullable=False))
|
||||
|
||||
|
||||
# Manually add the new notificationkind types
|
||||
op.bulk_insert(tables.notificationkind,
|
||||
[
|
||||
|
|
|
@ -114,7 +114,7 @@ def upgrade(tables):
|
|||
{'id':30, 'name':'create_prototype_permission'},
|
||||
{'id':31, 'name':'modify_prototype_permission'},
|
||||
{'id':32, 'name':'delete_prototype_permission'},
|
||||
|
||||
|
||||
{'id':33, 'name':'setup_repo_trigger'},
|
||||
{'id':34, 'name':'delete_repo_trigger'},
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
from data.model.legacy import *
|
||||
from data.model.legacy import *
|
|
@ -102,7 +102,7 @@ class DatabaseAuthorizationProvider(AuthorizationProvider):
|
|||
.get())
|
||||
return found.data
|
||||
except OAuthAccessToken.DoesNotExist:
|
||||
return None
|
||||
return None
|
||||
|
||||
def persist_authorization_code(self, client_id, code, scope):
|
||||
app = OAuthApplication.get(client_id=client_id)
|
||||
|
@ -261,7 +261,7 @@ def list_access_tokens_for_user(user):
|
|||
.join(User)
|
||||
.where(OAuthAccessToken.authorized_user == user))
|
||||
|
||||
return query
|
||||
return query
|
||||
|
||||
|
||||
def list_applications_for_org(org):
|
||||
|
|
|
@ -44,7 +44,7 @@ class WorkQueue(object):
|
|||
def update_metrics(self):
|
||||
if self._reporter is None:
|
||||
return
|
||||
|
||||
|
||||
with self._transaction_factory(db):
|
||||
now = datetime.utcnow()
|
||||
name_match_query = self._name_match_query()
|
||||
|
|
|
@ -102,13 +102,13 @@ class UserEventListener(object):
|
|||
data = None
|
||||
|
||||
try:
|
||||
data = json.loads(item['data'] or '{}')
|
||||
data = json.loads(item['data'] or '{}')
|
||||
except:
|
||||
pass
|
||||
|
||||
if data:
|
||||
yield event_id, data
|
||||
|
||||
|
||||
def stop(self):
|
||||
"""
|
||||
Unsubscribes from the channel(s). Should be called once the connection
|
||||
|
|
Reference in a new issue