Skip to content
Browse files

pep8

  • Loading branch information...
1 parent efca950 commit d12bfc50ba30023e764c0dfb2518d6f3ce7bf489 @WoLpH committed Aug 28, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 django_utils/choices.py
  2. +3 −1 django_utils/templatetags/debug.py
View
2 django_utils/choices.py
@@ -5,7 +5,7 @@
Create a :py:class:`Choices` class and add :py:class:`Choice` objects to the
class to define your choices.
-Example:
+Example:
The normal Django version:
View
4 django_utils/templatetags/debug.py
@@ -13,6 +13,7 @@ class _Formatter(object):
formatters_type = {}
formatters_instance = []
+
class Formatter(_Formatter):
MAX_LENGTH = 100
MAX_LENGTH_DOTS = 3
@@ -189,7 +190,8 @@ def format_object(self, value, depth):
for k, v in dict_.items():
dict_[k] = self(v, depth - 1)
- if hasattr(value, '__class__') and hasattr(value.__class__, '__name__'):
+ if(hasattr(value, '__class__') and
+ hasattr(value.__class__, '__name__')):
name = value.__class__.__name__
else:
module = __name__

0 comments on commit d12bfc5

Please sign in to comment.
Something went wrong with that request. Please try again.