Skip to content

Commit

Permalink
pep8 log mixen & management commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Lemann committed Dec 28, 2012
1 parent e1166ba commit b7bdd07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rapidsms/log/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _logger(self):
# doesn't bother, resulting in an obscure explosion for non-strings
if not isinstance(name, basestring):
raise TypeError(
"%s._logger_name returned '%r' (%s). (wanted a string)" %\
"%s._logger_name returned '%r' (%s). (wanted a string)" %
(type(self).__name__, name, type(name).__name__))

return logging.getLogger(name)
Expand Down
3 changes: 1 addition & 2 deletions rapidsms/management/commands/update_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def handle_noargs(self, **options):

# fetch all of the apps (identified by their module name,
# which is unique) that we already have objects for
known_module_names = list(App.objects\
.values_list("module", flat=True))
known_module_names = list(App.objects.values_list("module", flat=True))

# find any running apps which currently
# don't have objects, and fill in the gaps
Expand Down
5 changes: 3 additions & 2 deletions rapidsms/management/commands/update_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ def handle_noargs(self, **options):

# fetch all of the backends (identified by their
# name) that we already have instances for
known_backend_names = list(Backend.objects\
.values_list("name", flat=True))
known_backend_names = list(
Backend.objects.values_list("name", flat=True)
)

# find any running backends which currently
# don't have instances, and fill in the gaps
Expand Down

0 comments on commit b7bdd07

Please sign in to comment.