Skip to content
Browse files

Add support for py3.

  • Loading branch information...
1 parent 032cfa1 commit 5a763750d42916609a6a4716558c673da1786ed5 @adiroiban adiroiban committed
Showing with 3 additions and 1 deletion.
  1. +2 −1 lesscpy/lessc/lexer.py
  2. +1 −0 requirements.txt
View
3 lesscpy/lessc/lexer.py
@@ -11,6 +11,7 @@
"""
import re
import ply.lex as lex
+from six import string_types
from lesscpy.lib import dom
from lesscpy.lib import css
@@ -465,7 +466,7 @@ def input(self, file):
Load lexer with content from `file` which can be a path or a file
like object.
"""
- if isinstance(file, basestring):
+ if isinstance(file, string_types):
with open(file) as f:
self.lexer.input(f.read())
else:
View
1 requirements.txt
@@ -1 +1,2 @@
ply
+six

0 comments on commit 5a76375

Please sign in to comment.
Something went wrong with that request. Please try again.