Skip to content

Commit

Permalink
Fix lints on py3x
Browse files Browse the repository at this point in the history
  • Loading branch information
noirbizarre committed Mar 4, 2017
1 parent 421a245 commit b583847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion flask_fs/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import bisect
import logging
import six

from os.path import splitext

Expand Down Expand Up @@ -203,7 +204,7 @@ def to_python(self, value):
if not isinstance(value, self.proxy_class):
if isinstance(value, dict):
value = self.proxy(**value)
elif isinstance(value, basestring):
elif isinstance(value, six.text_type):
value = self.proxy(filename=value)
return value

Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
envlist = py{27,33,34,35,36,py}, doc

[testenv]
commands = pytest
commands = inv test qa
deps =
.[test]
.[ci]
pypy: pillow<3

[testenv:doc]
Expand Down

0 comments on commit b583847

Please sign in to comment.