Skip to content

Remove logic for python2 #312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
init: Remove __future__ statements or py2
The __future__ statements we used were:
 - absolute_import - Mandatory in 3.0
 - with_statement - Mandatory in 2.6
 - print_function - Mandatory in 3.0

As we only support python >= 3.6 - this can be removed now
  • Loading branch information
AbdealiLoKo committed Oct 28, 2022
commit 5a8dceae2829a985ed70339b62490c7af89ef871
1 change: 0 additions & 1 deletion pypandoc/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these headers are also obsolete.

from __future__ import absolute_import, print_function, with_statement
from typing import Iterable
from typing import Union
from typing import Generator
Expand Down
2 changes: 0 additions & 2 deletions pypandoc/py3compat.py

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could the remaining contents of this module moved into another one?

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import with_statement

import locale
import sys

Expand Down