aboutsummaryrefslogtreecommitdiff
path: root/find-modules/rules_engine.py
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2020-12-13 11:50:46 +0100
committerDavid Faure <faure@kde.org>2020-12-13 11:51:10 +0100
commit1c9ca43e12a9c09c94b87d1c494823b3c5d7798a (patch)
treeeaa04cfd7ab6795cb1d83be23e3a01fcb3241200 /find-modules/rules_engine.py
parent0d0e85db1d62ae59b781b60f6c5b69b6ae7bd2e0 (diff)
downloadextra-cmake-modules-1c9ca43e12a9c09c94b87d1c494823b3c5d7798a.tar.gz
extra-cmake-modules-1c9ca43e12a9c09c94b87d1c494823b3c5d7798a.tar.bz2
Fix errors in python code, found by pylama in a strict CI
Diffstat (limited to 'find-modules/rules_engine.py')
-rwxr-xr-xfind-modules/rules_engine.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/find-modules/rules_engine.py b/find-modules/rules_engine.py
index 60611eeb..b9e9dedd 100755
--- a/find-modules/rules_engine.py
+++ b/find-modules/rules_engine.py
@@ -18,7 +18,6 @@ import os
import re
import sys
import textwrap
-import traceback
from copy import deepcopy
from clang.cindex import CursorKind
@@ -51,7 +50,7 @@ class Rule(object):
# Derive a useful name for diagnostic purposes.
#
caller = os.path.basename(inspect.stack()[3][1])
- self.name = "{}:{}[{}],{}".format(caller, type(db).__name__, rule_number, fn.__name__)
+ self.name = "{}:{}[{}],{}".format(caller, type(db).__name__, rule_number, fn.__name__)
self.rule_number = rule_number
self.fn = fn
self.usage = 0