Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 compatibility issues #135

Open
cclauss opened this issue May 14, 2020 · 0 comments
Open

Python 3 compatibility issues #135

cclauss opened this issue May 14, 2020 · 0 comments

Comments

@cclauss
Copy link
Contributor

cclauss commented May 14, 2020

Solutions in #105

$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

./elfinder/connector.py:429:33: E999 SyntaxError: invalid syntax
                except Exception, e:
                                ^
./elfinder/utils/volumes.py:30:27: F821 undefined name 'basestring'
    if isinstance(class_, basestring) and class_:
                          ^
./elfinder/volumes/storage.py:72:53: F821 undefined name 'basestring'
                if isinstance(opts['storageClass'], basestring):
                                                    ^
./elfinder/volumes/filesystem.py:29:40: E999 SyntaxError: invalid token
        self._options['dirMode']  = 0755 #new dirs mode
                                       ^
./elfinder/volumes/base.py:199:37: F821 undefined name 'unicode'
        self._root = self._normpath(unicode(self._options['path']))
                                    ^
./elfinder/tests/volumes.py:38:56: F821 undefined name 'basestring'
        self.assertEqual(isinstance(self.default_path, basestring), True)
                                                       ^
2     E999 SyntaxError: invalid syntax
4     F821 undefined name 'basestring'
6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant