diff options
author | Anthon van der Neut <anthon@mnt.org> | 2015-05-27 09:53:44 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2015-05-27 09:53:44 +0200 |
commit | cee6b243bf48dd10deab0154d08c5e85aef61bc8 (patch) | |
tree | 88c30e04806c5045f1a44741cc0f66ee90dd0040 | |
parent | 2ec4cd023bb82005c1959b429efce42e874a7386 (diff) | |
download | ruamel.base-cee6b243bf48dd10deab0154d08c5e85aef61bc8.tar.gz |
make tox work on py3
-rw-r--r-- | README.rst | 7 | ||||
-rw-r--r-- | __init__.py | 2 | ||||
-rw-r--r-- | setup.py | 6 |
3 files changed, 8 insertions, 7 deletions
@@ -1,6 +1,7 @@ ruamel.base -- provides a single definition point for ``ruamel/__init__.py`` and - ``ruamel/*/__init__.py`` -- (future) place for elements common to multiple packages
\ No newline at end of file +- provides a single definition point for ``ruamel/__init__.py``, + ``ruamel/ext/__init__.py`` and + ``ruamel/std/__init__.py`` +- (future) place for elements common to multiple packages diff --git a/__init__.py b/__init__.py index 2e68e44..ca703bc 100644 --- a/__init__.py +++ b/__init__.py @@ -19,7 +19,7 @@ def _convert_version(tup): return ret_val -version_info = (0, 1) +version_info = (0, 2) __version__ = _convert_version(version_info) del _convert_version @@ -36,7 +36,7 @@ def _check_convert_version(tup): if isinstance(x, int): nr_digits += 1 if nr_digits > 2: - raise ValueError("to many consecutive digits " + ret_val) + raise ValueError("too many consecutive digits " + ret_val) ret_val += next_sep + str(x) next_sep = '.' continue @@ -79,7 +79,7 @@ class MyInstallLib(install_lib.install_lib): except ImportError: pass ''') - init_paths = ["ruamel/std",] # "ruamel/ext"] + init_paths = ["ruamel/std", ] # "ruamel/ext"] for init_path_s in init_paths: init_path = init_path_s.split('/') for product_init in [ @@ -92,7 +92,7 @@ class MyInstallLib(install_lib.install_lib): if not os.path.exists(d): os.makedirs(d) print('creating %s' % product_init) - with open(product_init, "w") as fp: + with open(product_init, "wt") as fp: fp.write(init_txt) setup = os.path.join(self.install_dir, 'setup.py') |