mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 03:38:03 +01:00
Fix pycodestyle (pep8) errors
This commit is contained in:
@@ -8,8 +8,8 @@ python:
|
||||
- "3.7-dev"
|
||||
|
||||
before_install:
|
||||
- pip install pep8
|
||||
- pip install pycodestyle
|
||||
|
||||
script:
|
||||
- find . -name \*.py -exec pep8 --ignore=E501 {} +
|
||||
- find . -name \*.py -exec pycodestyle --ignore=E501,E402 {} +
|
||||
- make test
|
||||
|
||||
@@ -13,7 +13,7 @@ class Player:
|
||||
stdin = open('/dev/tty')
|
||||
with raw(stdin.fileno()):
|
||||
self._play(asciicast, idle_time_limit, speed, stdin)
|
||||
except:
|
||||
except Exception:
|
||||
self._play(asciicast, idle_time_limit, speed, None)
|
||||
|
||||
def _play(self, asciicast, idle_time_limit, speed, stdin):
|
||||
|
||||
@@ -29,7 +29,7 @@ def test_upgrade_no_config_file():
|
||||
config.upgrade()
|
||||
install_id = read_install_id(config.install_id_path)
|
||||
|
||||
assert re.match('^\w{8}-\w{4}-\w{4}-\w{4}-\w{12}', install_id)
|
||||
assert re.match('^\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}', install_id)
|
||||
assert_equal(install_id, config.install_id)
|
||||
assert not path.exists(config.config_file_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user