fix various PEP8 issues

Most of the changes are harmless.

Some of them actually alter the very-old style that probably
was copied from original docstrings from stdlib.
None of the tests actually check if mocked IO has the same
docstrings as stdlib IO so I guess that's not that important

There is also one old exception syntax change but I don't think
that's a factor as python2.5 is not that important anymore

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
mfs: only replace os.getcwdu on python-2.x

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
storage: only replace os.file on python-2.x

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: bump copyright

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: switch to setuptools

This is required to use use_2to3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: don't import mockfs

This allows us to use 2to3 later as vanilla mockfs modules are not
compatible with python3. This sadly means that version needs to be
maintained manually. The long_description field seems of low quality
and should be probably either fixed or removed

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: add mockfs.tests to packages=

This is required to use_2to3 to fix tests for python3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: declare test suite

This allows test suite to run with 'python setup.py test'

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: use 2to3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
setup: advertise support for python3.{2,3}

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
run_tests: drop standalone test script

This script does not work with python3 as it cannot use 2to3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
travis: use 'python setup.py test' for testing

This way 2to3 magic can convert the code for python3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
travis: also test on python-3.{2,3}

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
gitignore: sort entries

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
gitignore: ignore *.egg-info

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
gitignore: ignore both build and dist

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
gitignore: ignore __pycache__

Yay for python3 support :)

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
gitignore: ignore htmlcov and .coverage

Yay for coverage

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
Merge pull request #2 from zyga/py3k

merge py3k branch