Fix `check_future_import`.

Previously the test never evaluated to True because `node.type` could not
be simultanously equal to `syms.import_from` (297) and `token.NAME` (1).

In addition, avoid printing unnecessary debugging output.
Change print statements to print functions to fix in python3.
fix_zip: was importing zip when map() is used

Fixes https://github.com/mitsuhiko/python-modernize/issues/6
Merge branch 'fix_add_future' of https://github.com/bfroehle/python-modernize
Merge branch 'master' of https://github.com/garyvdm/python-modernize
Use __future__ to restory Python 2 compatibility
Add fix_raise_six
Merge tests from branch 'multiple-futures-fix' of https://github.com/Mekk/python-modernize into HEAD

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Make 'python setup.py test' run nose tests.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Additions to .gitignore (from Mekk's branch).

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Ignore some directories in .gitignore.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Add Python 2.6 and 2.7 to PyPI metadata.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Remove unused imports.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Avoid adding redundant parentheses in fix_print.
Based on https://github.com/myint/python-modernize/commit/6ab4ccc73e4ff3a63f54e6d5ee19f0c53c67339c
but with an additional fix for bare 'print', and tests.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Add __version__ attribute

Closes gh-1
Avoid duplication between libmodernize.__version__ and the version passed to setup. refs #1

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
python-modernize doesn't *run* on Python 3, yet. (Yes, I know about the modernize3k fork.)

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Add .travis.yml file
Merge pull request #6 from takluyver/travis

Add .travis.yml file
Create CHANGELOG with changes since 0.2

Closes gh-2