summaryrefslogtreecommitdiff
path: root/raven/contrib
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2018-12-15 10:55:28 -0800
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2018-12-15 10:55:28 -0800
commitd9e787b7a75ce9e50a3537d379d8a767bab9117f (patch)
tree734aab0e8105eb4629685d152ef3ecea245e5fa7 /raven/contrib
parent4206873d63c461ffe6944029d36951514157928e (diff)
downloadraven-d9e787b7a75ce9e50a3537d379d8a767bab9117f.tar.gz
fix: Flake8 updates
Diffstat (limited to 'raven/contrib')
-rw-r--r--raven/contrib/django/client.py8
-rw-r--r--raven/contrib/django/serializers.py6
-rw-r--r--raven/contrib/zope/__init__.py4
3 files changed, 9 insertions, 9 deletions
diff --git a/raven/contrib/django/client.py b/raven/contrib/django/client.py
index 84c4770..fa424bc 100644
--- a/raven/contrib/django/client.py
+++ b/raven/contrib/django/client.py
@@ -288,10 +288,10 @@ class DjangoClient(Client):
# template information. As of Django 1.9 or so the new
# template debug thing showed up.
if hasattr(exc_value, 'django_template_source') or \
- ((isinstance(exc_value, TemplateSyntaxError) and
- isinstance(getattr(exc_value, 'source', None),
- (tuple, list)) and
- isinstance(exc_value.source[0], Origin))) or \
+ ((isinstance(exc_value, TemplateSyntaxError)
+ and isinstance(getattr(exc_value, 'source', None),
+ (tuple, list))
+ and isinstance(exc_value.source[0], Origin))) or \
hasattr(exc_value, 'template_debug'):
source = getattr(exc_value, 'django_template_source',
getattr(exc_value, 'source', None))
diff --git a/raven/contrib/django/serializers.py b/raven/contrib/django/serializers.py
index 221c7a0..f18f283 100644
--- a/raven/contrib/django/serializers.py
+++ b/raven/contrib/django/serializers.py
@@ -25,9 +25,9 @@ class PromiseSerializer(Serializer):
return False
pre = value.__class__.__name__[1:]
- if not (hasattr(value, '%s__func' % pre) or
- hasattr(value, '%s__unicode_cast' % pre) or
- hasattr(value, '%s__text_cast' % pre)):
+ if not (hasattr(value, '%s__func' % pre)
+ or hasattr(value, '%s__unicode_cast' % pre)
+ or hasattr(value, '%s__text_cast' % pre)):
return False
return True
diff --git a/raven/contrib/zope/__init__.py b/raven/contrib/zope/__init__.py
index b134ed3..b103c6b 100644
--- a/raven/contrib/zope/__init__.py
+++ b/raven/contrib/zope/__init__.py
@@ -46,8 +46,8 @@ class ZopeSentryHandler(SentryHandler):
def can_record(self, record):
return not (
- record.name == 'raven' or
- record.name.startswith(('sentry.errors', 'raven.'))
+ record.name == 'raven'
+ or record.name.startswith(('sentry.errors', 'raven.'))
)
def emit(self, record):