require 'six'.

Signed-off-by: David Black <dblack@atlassian.com>
Add support for python 3 (>= 3.3) while still supporting python 2.7.x. This commit drops support for python 2.5.

Signed-off-by: David Black <dblack@atlassian.com>
make travis ci test against python 3.3 in addition to python 2.7.

Signed-off-by: David Black <dblack@atlassian.com>
add 'six' to tests_require in setup.py.

Signed-off-by: David Black <dblack@atlassian.com>
Revert "add 'six' to tests_require in setup.py."

This reverts commit 8f6ccacef153c70a18d36811aa95691f86997378.

Signed-off-by: David Black <dblack@atlassian.com>
Add a requirements.txt file.

Signed-off-by: David Black <dblack@atlassian.com>
Simply import pickle as there is no need to import pickle as pickle.

Signed-off-by: David Black <dblack@atlassian.com>
Remove the redundant parenthesis added by the 2to3 script.

Signed-off-by: David Black <dblack@atlassian.com>
isinstance(thing, six.string_types) looks nicer than isinstance(thing, six.string_types[0]).

Signed-off-by: David Black <dblack@atlassian.com>
Do isinstance(self.data, six.text_type) instead of isinstance(self.data, type(six.text_type())).

Signed-off-by: David Black <dblack@atlassian.com>
Switch out six.next(...) for next(...).

Signed-off-by: David Black <dblack@atlassian.com>
Remove the imports from __init__ as they are not needed and will make setup.py fail if six is not installed.

Signed-off-by: David Black <dblack@atlassian.com>
Revert "Remove the imports from __init__ as they are not needed and will make setup.py fail if six is not installed."

This reverts commit 33eafa8b25335420f64abdc3b6d173d4b7c7124d.
Prevent the attempt to import required but not yet installed modules by specifying the version number in setup.py instead of importing it from javalang/__init__.py.

Signed-off-by: David Black <dblack@atlassian.com>
Merge pull request #11 from dbaxa/python_3_support

Python 3 support