Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Aug 28, 2013
1 parent efca950 commit d12bfc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_utils/choices.py
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion django_utils/templatetags/debug.py
Expand Up @@ -13,6 +13,7 @@ class _Formatter(object):
formatters_type = {}
formatters_instance = []


class Formatter(_Formatter):
MAX_LENGTH = 100
MAX_LENGTH_DOTS = 3
Expand Down Expand Up @@ -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__
Expand Down

0 comments on commit d12bfc5

Please sign in to comment.