Enhance markmin2pdf.py PEP8

This commit is contained in:
Hardirc
2016-04-10 09:36:06 -04:00
parent 59a194842d
commit 409c973dc4
+3 -2
View File
@@ -13,9 +13,10 @@ from markmin2latex import markmin2latex
__all__ = ['markmin2pdf'] __all__ = ['markmin2pdf']
def removeall(path):
def removeall(path):
ERROR_STR = """Error removing %(path)s, %(error)s """ ERROR_STR = """Error removing %(path)s, %(error)s """
def rmgeneric(path, __func__): def rmgeneric(path, __func__):
try: try:
__func__(path) __func__(path)
@@ -107,6 +108,7 @@ if __name__ == '__main__':
import sys import sys
import doctest import doctest
import markmin2html import markmin2html
if sys.argv[1:2] == ['-h']: if sys.argv[1:2] == ['-h']:
data, warnings, errors = markmin2pdf(markmin2html.__doc__) data, warnings, errors = markmin2pdf(markmin2html.__doc__)
if errors: if errors:
@@ -127,4 +129,3 @@ if __name__ == '__main__':
print data print data
else: else:
doctest.testmod() doctest.testmod()