Skip to content

Commit

Permalink
Merge pull request #87 from tsuyukimakoto/feature/python38
Browse files Browse the repository at this point in the history
add python 3.8
  • Loading branch information
tsuyukimakoto authored Oct 25, 2019
2 parents 520eb4b + 05ac0b6 commit 3f53284
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions biisan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
import multiprocessing

version_info = (0, 8, 1)
__version__ = ".".join([str(v) for v in version_info])

os.environ['GLUE_PLATE_BASE_MODULE'] = 'biisan.biisan_settings'

multiprocessing.set_start_method('fork')
2 changes: 1 addition & 1 deletion biisan/directives/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cgi import escape
from html import escape
import logging

from docutils import nodes
Expand Down
2 changes: 1 addition & 1 deletion biisan/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def formated(self):
'<pre class="code {0}">{0}</pre>'.format(
content.format, content.text))
else:
logger.warn(
logger.warning(
"Type:{0} in paragraph doesn't treat.".format(
type(content)))
return _formated
Expand Down
8 changes: 4 additions & 4 deletions biisan/processors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def process_field_body(elm, registry, container):
res = []
for x in list(elm):
if 'field_list' == x.tag:
logger.warn("Ignore field_list in field_body's child")
logger.warning("Ignore field_list in field_body's child")
else:
res.append(x.text)
return res
Expand Down Expand Up @@ -296,7 +296,7 @@ def _process_comment(elm, registry, story):
_field[1][0].text, '%Y-%m-%d %H:%M'
)
else:
logger.warn(_field[0].text)
logger.warning(_field[0].text)
c = Comment()
c.commentator = commentator
c.url = url
Expand Down Expand Up @@ -324,7 +324,7 @@ def process_docinfo(elm, registry, story):
elif field_name == 'comment':
_process_comment(_elm[1], registry, story)
else:
logger.warn(
logger.warning(
"elm.tag '{0}' doesn't process in process_docinfo.".format(
_elm[0].tag))
elif 'date' == _elm.tag:
Expand Down Expand Up @@ -370,6 +370,6 @@ def process(self, elm, container):
_fnc = getattr(self, _processor_name)
return _fnc(elm, self, container)
else:
logger.warn(
logger.warning(
'processor {0} is not defined and element ignored.'.format(
_processor_name))
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Documentation',
],
zip_safe=False,
Expand Down

0 comments on commit 3f53284

Please sign in to comment.