[devscripts] 01/01: Fix build failure due to flake8 warning in sadt
Paul Wise
pabs at moszumanska.debian.org
Sat Jul 23 08:17:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
pabs pushed a commit to branch master
in repository devscripts.
commit 99ab0e4b9b14dd2c3bf921b0ed7b6185ec9396db
Author: Paul Wise <pabs at debian.org>
Date: Sat Jul 23 16:13:43 2016 +0800
Fix build failure due to flake8 warning in sadt
python3 -m flake8 --max-line-length=99 sadt suspicious-source wrap-and-sort
sadt:232:15: N801 class names should use CapWords convention
---
scripts/sadt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/sadt b/scripts/sadt
index c3b7333..641a693 100755
--- a/scripts/sadt
+++ b/scripts/sadt
@@ -229,12 +229,12 @@ class TestGroup(object):
def check_restrictions(self, ignored_restrictions):
restrictions = self.restrictions - frozenset(ignored_restrictions)
- class options:
+ class Options:
rw_build_tree_needed = False
allow_stderr = False
for r in restrictions:
if r == 'rw-build-tree':
- options.rw_build_tree_needed = True
+ Options.rw_build_tree_needed = True
elif r == 'needs-root':
if os.getuid() != 0:
raise Skip('this test needs root privileges')
@@ -243,10 +243,10 @@ class TestGroup(object):
elif r == 'build-needed':
raise Skip('source tree not built')
elif r == 'allow-stderr':
- options.allow_stderr = True
+ Options.allow_stderr = True
else:
raise Skip('unknown restriction: {restr}'.format(restr=r))
- return options
+ return Options
def check(self, ignored_restrictions=()):
options = self.check_restrictions(ignored_restrictions)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list