debian/apport/source_grub2.py: Fix flake8 errors

This commit is contained in:
Colin Watson 2019-08-03 13:04:54 +01:00
parent e3c076c431
commit 598127c3f7
2 changed files with 9 additions and 4 deletions

View File

@ -23,6 +23,7 @@ from apport.hookutils import (
path_to_key,
)
def check_shell_syntax(path):
''' Check the syntax of a shell script '''
try:
@ -32,6 +33,7 @@ def check_shell_syntax(path):
return False
return True
def check_shell_syntax_harder(path):
''' Check the syntax of a shell script '''
try:
@ -93,6 +95,7 @@ def add_info(report):
if invalid_grub_script:
report['InvalidGrubScript'] = ' '.join(invalid_grub_script)
if __name__ == '__main__':
r = {}
r['ProblemType'] = 'Package'

4
debian/changelog vendored
View File

@ -6,7 +6,9 @@ grub2 (2.04-2) UNRELEASED; urgency=medium
[ Colin Watson ]
* Use debhelper-compat instead of debian/compat.
* debian/apport/source_grub2.py: Avoid star import.
* debian/apport/source_grub2.py:
- Avoid star import.
- Fix flake8 errors.
-- Colin Watson <cjwatson@debian.org> Tue, 09 Jul 2019 15:04:41 +0100