diff options
author | Sean Dague <sdague@linux.vnet.ibm.com> | 2013-01-08 17:08:09 -0500 |
---|---|---|
committer | Sean Dague <sdague@linux.vnet.ibm.com> | 2013-01-09 15:47:22 -0500 |
commit | 1d350ba53792bd7fe0fd6364a2598b893ccf061c (patch) | |
tree | 8004a6087b39c46f4aade73ca548aea475ee986d /tools/hacking.py | |
parent | f4ee8bc87a2b8b4ea82ba273a9eff61e5d702665 (diff) | |
download | nova-1d350ba53792bd7fe0fd6364a2598b893ccf061c.tar.gz nova-1d350ba53792bd7fe0fd6364a2598b893ccf061c.tar.xz nova-1d350ba53792bd7fe0fd6364a2598b893ccf061c.zip |
fix N402 on tools/
fix N402 (single line docstrings should end in a period)
Change-Id: I2086dfb33a6efeb6ef6edc6a326182b6deda2527
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" |