Skip to content

Commit 2fcce8b

Browse files
authored
BUG+REL: Restore Python2.7 support (#262)
* BUG: Fix missing FileNotFoundError on python2.7 * REL: Add Python 2 Trove Classifier * REL: Version 1.7.4 -> 1.7.5
1 parent 28f7a3f commit 2fcce8b

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

pypandoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .py3compat import cast_bytes, cast_unicode, string_types, url2path, urlparse
1616

1717
__author__ = u'Juho Vepsäläinen'
18-
__version__ = '1.7.4'
18+
__version__ = '1.7.5'
1919
__license__ = 'MIT'
2020
__all__ = ['convert', 'convert_file', 'convert_text',
2121
'get_pandoc_formats', 'get_pandoc_version', 'get_pandoc_path',

pypandoc/pandoc_download.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
from .handler import _check_log_handler
2020

21+
try:
22+
FileNotFoundError
23+
except NameError:
24+
# Python <3.5
25+
FileNotFoundError = IOError
26+
2127
logger = logging.getLogger(__name__.split('.')[0])
2228

2329
DEFAULT_TARGET_FOLDER = {

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pypandoc"
3-
version = "1.7.4"
3+
version = "1.7.5"
44
description = "Thin wrapper for pandoc"
55
authors = ["NicklasTegner <[email protected]>"]
66
license = "MIT"

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def run(self):
9898
'Programming Language :: Python',
9999
'Topic :: Text Processing',
100100
'Topic :: Text Processing :: Filters',
101+
'Programming Language :: Python :: 2',
101102
'Programming Language :: Python :: 2.7',
102103
'Programming Language :: Python :: 3',
103104
'Programming Language :: Python :: 3.6',

0 commit comments

Comments
 (0)