]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a python warning in format_changelog.py.
authorNick Mathewson <nickm@torproject.org>
Thu, 14 May 2020 14:37:52 +0000 (10:37 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 14 May 2020 14:37:52 +0000 (10:37 -0400)
scripts/maint/format_changelog.py

index 7cf55a0d964b1ca9319d1dbe0d32b199fbd6c5ab..b37ece04c04dc36ec0f044bb7e776a13f59f1508 100755 (executable)
@@ -291,7 +291,7 @@ class ChangeLog(object):
             self.curgraf.append(line)
 
         else:
-            assert "This" is "unreachable"  # noqa: F632
+            assert False  # This should be unreachable.
 
     def lint_head(self, line, head):
         m = re.match(r'^ *o ([^\(]+)((?:\([^\)]+\))?):', head)