Handle invalid literals for start attribute
Make html2text.py compatible with python 3.*

* Don't expect u'' strings to work.
* Fix nbsp_unicode test.
* Also remove workaround for python < 2.3 ... we really don’t need it
  anymore.
* Fix <pre> in list tests.
  Replace onlywhite function with RE.

  I believe that Aaron by mistake put to the html2text.py his
  contribution to the Obfuscated Python Code Contest.

  For the reasons I have no chance to decipher, I have to use RE.
  More obvious replacement with para.isspace() doesn't work.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Switch tests to unittest (w/generated test cases)

Specifically:
  * add test generator
  * remove all direct printings to stdout (reporting should be done by
    the unittest)
  * close all open files (unfortunately, we cannot use with statement
    with python 2.4 compatibility)
  * iteritems -> items ... to be 3.* compatible (and we really don't
    need generators here)
  * fix Travis-CI metadata to work on whole supported range of python
    versions.
  * make installation of dependencies in travis-CI and other testing
    related stuff working independently from python version and both
    with unittest (for python >= 2.7) and unittest2 (for python < 2.7)

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
Remove .editorconfig

html2text.py doesn't comply with it anyway (e.g., html2text.py has Unix
EOLs not MS-DOS ones) and it breaks those who would actually have
support for editorconfig in their $EDITOR.
Remove depreceated function has_key.

Signed-off-by: Matěj Cepl <mcepl@redhat.com>
PEP8ize the script.

This should be generally NOOP, just running the script through flake8
and fixing all highlighted warnings.
Merge branch 'pr/70' into next
Add test case from the issue #2.

I rejected the test_html method, because html2text never actually
promised that the output will be correct Markdown, even less it promised
it will be Markdown formatted according to some particular way.

However, we can try to fix this.
Add bodywidth paramter instead of module-wide BODY_WIDTH.
Travis-CI doesn’t support 2.5 anymore.
Merge pull request #3 from mcepl/avoid_newlines_02

Avoid newlines 02
Merge branch 'next' of https://github.com/mcepl/html2text

Conflicts:
	setup.py
Just a simple pep8 here
Set the Alir3z4's travis build profile