Skip to content

Commit

Permalink
Use not isinstance(..., ...) instead of type(...) is not ...
Browse files Browse the repository at this point in the history
  • Loading branch information
mjumbewu committed Jan 14, 2014
1 parent 13c325e commit 1682e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_csv/renderers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def render(self, data, media_type=None, renderer_context=None):
if data is None:
return ''

if type(data) is not list:
if not isinstance(data, list):
data = [data]

table = self.tablize(data)
Expand Down

0 comments on commit 1682e9e

Please sign in to comment.