From ca9492c95c06bc30f592db5791ed84936c9630c3 Mon Sep 17 00:00:00 2001 From: zax Date: Sun, 1 Nov 2015 17:43:32 -0500 Subject: Call main script from CI --- .travis.yml | 1 + pycco/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e4997ac..62e7c6b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,6 @@ install: - 'pip install -r requirements.test.txt' script: - 'py.test --cov=pycco tests/' + - 'python -m pycco.main pycco/main.py' after_success: - coveralls diff --git a/pycco/main.py b/pycco/main.py index 8a20ae6..cde05d7 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -409,7 +409,7 @@ def shift(list, default): def remove_control_chars(s): # Sanitization regexp copied from # http://stackoverflow.com/questions/92438/stripping-non-printable-characters-from-a-string-in-python - from .compat import pycco_unichr + from pycco.compat import pycco_unichr control_chars = ''.join(map(pycco_unichr, list(range(0, 32)) + list(range(127, 160)))) control_char_re = re.compile(u'[{}]'.format(re.escape(control_chars))) return control_char_re.sub('', s) -- cgit v1.2.1