|
From: <mi...@us...> - 2019-08-26 16:42:09
|
Revision: 8352
http://sourceforge.net/p/docutils/code/8352
Author: milde
Date: 2019-08-26 16:42:06 +0000 (Mon, 26 Aug 2019)
Log Message:
-----------
py3: Resolve some additional undefined symbols
Found with flake8
Signed-off-by: Stephen Finucane <st...@th...>
Modified Paths:
--------------
trunk/docutils/docutils/utils/math/math2html.py
trunk/docutils/tools/dev/generate_punctuation_chars.py
trunk/docutils/tox.ini
Modified: trunk/docutils/docutils/utils/math/math2html.py
===================================================================
--- trunk/docutils/docutils/utils/math/math2html.py 2019-08-26 16:41:48 UTC (rev 8351)
+++ trunk/docutils/docutils/utils/math/math2html.py 2019-08-26 16:42:06 UTC (rev 8352)
@@ -1624,7 +1624,7 @@
def open(self, container):
"Get opening line."
- if not self.checktag():
+ if not self.checktag(container):
return ''
open = '<' + self.tag + '>'
if self.breaklines:
@@ -1633,7 +1633,7 @@
def close(self, container):
"Get closing line."
- if not self.checktag():
+ if not self.checktag(container):
return ''
close = '</' + self.tag.split()[0] + '>'
if self.breaklines:
@@ -1642,7 +1642,7 @@
def selfclosing(self, container):
"Get self-closing line."
- if not self.checktag():
+ if not self.checktag(container):
return ''
selfclosing = '<' + self.tag + '/>'
if self.breaklines:
@@ -1649,7 +1649,7 @@
return selfclosing + '\n'
return selfclosing
- def checktag(self):
+ def checktag(self, container):
"Check that the tag is valid."
if not self.tag:
Trace.error('No tag in ' + unicode(container))
Modified: trunk/docutils/tools/dev/generate_punctuation_chars.py
===================================================================
--- trunk/docutils/tools/dev/generate_punctuation_chars.py 2019-08-26 16:41:48 UTC (rev 8351)
+++ trunk/docutils/tools/dev/generate_punctuation_chars.py 2019-08-26 16:42:06 UTC (rev 8352)
@@ -319,17 +319,6 @@
else:
print('%s unchanged' % name)
-def print_quote_pairs():
- pairs = [(o,c) for o,c in quote_pairs.items()]
- for o,c in sorted(pairs):
- print((u'%s %s' % (o,c)).encode('utf8'))
-
- # # Test open/close matching:
- # for i in range(min(len(openers),len(closers))):
- # print('%4d %s %s' % (i, openers[i].encode('utf8'),
- # closers[i].encode('utf8'))
-
-
# Output
# ------
#
Modified: trunk/docutils/tox.ini
===================================================================
--- trunk/docutils/tox.ini 2019-08-26 16:41:48 UTC (rev 8351)
+++ trunk/docutils/tox.ini 2019-08-26 16:42:06 UTC (rev 8352)
@@ -112,3 +112,8 @@
ignore = E101,E111,E114,E115,E116,E117,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E201,E202,E203,E211,E221,E222,E225,E226,E228,E231,E241,E251,E261,E262,E265,E266,E271,E301,E302,E303,E305,E306,E401,E402,E501,E502,E701,E704,E711,E713,E721,E722,E731,E741,W191,W291,W293,W391,W503,W504,W605,F401,F841
exclude = .venv,.tox,dist,*egg,build
max-complexity = 35
+# Some rules are disabled for specific files (requires flake8 3.7.0)
+#
+# F821, disabled due to use of 'settings_overrides'
+per-file-ignores =
+ docutils/test/functional/tests/*:F821
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|