Fix python3 pep8 errors

Gate still runs pep8 with python2.7 but will eventually run with
python3, and current desktop linux distributions typically ship
a version of tox that uses python3 to run pep8.

Remove windows style line endings and use builtin functions that
are python3 compatible.

TrivialFix

Change-Id: I542475fe25358cc127c3e0de00fcc9f7dc084005
This commit is contained in:
Tom Barron 2017-03-08 12:03:34 -05:00
parent ed4a7109e9
commit 946c2fe80d
4 changed files with 524 additions and 524 deletions

View File

@ -295,13 +295,13 @@ def monkey_patch():
def file_open(*args, **kwargs):
"""Open file
see built-in file() documentation for more details
see built-in open() documentation for more details
Note: The reason this is kept in a separate module is to easily
be able to provide a stub module that doesn't alter system
state at all (for unit tests)
"""
return file(*args, **kwargs)
return open(*args, **kwargs)
def service_is_up(service):