diff options
Diffstat (limited to 'tools/hacking.py')
-rwxr-xr-x | tools/hacking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hacking.py b/tools/hacking.py index a860aa37b..7322fd071 100755 --- a/tools/hacking.py +++ b/tools/hacking.py @@ -297,7 +297,7 @@ def nova_docstring_one_line(physical_line): pos = max([physical_line.find(i) for i in DOCSTRING_TRIPLE]) # start end = max([physical_line[-4:-1] == i for i in DOCSTRING_TRIPLE]) # end if (pos != -1 and end and len(physical_line) > pos + 4): - if (physical_line[-5] != '.'): + if (physical_line[-5] not in ['.', '?', '!']): return pos, "NOVA N402: one line docstring needs a period" |