Skip to content

Commit

Permalink
Add warning about dropping python2 support (#307)
Browse files Browse the repository at this point in the history
Fix #303
  • Loading branch information
pietermarsman committed Oct 20, 2019
1 parent dd7dc7b commit adc4726
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Deprecated
- Support for Python 2 is dropped at January 1st, 2020 ([#307](https://github.com/pdfminer/pdfminer.six/pull/307))

### Added
- Contribution guidelines in [CONTRIBUTING.md](CONTRIBUTING.md) ([#259](https://github.com/pdfminer/pdfminer.six/pull/259))
- Support new encodings OneByteEncoding and DLIdent for CMaps ([#283](https://github.com/pdfminer/pdfminer.six/pull/283))
Expand Down
8 changes: 8 additions & 0 deletions pdfminer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
formats (such as HTML). It has an extensible PDF parser that can be used for
other purposes instead of text analysis.
"""
import sys
import warnings

__version__ = '20181108'


if sys.version_info < (3, 0):
warnings.warn('On January 1st, 2020, pdfminer.six will stop supporting Python 2. Please upgrade to Python 3. For '
'more information see https://github.com/pdfminer/pdfminer.six/issues/194')

if __name__ == '__main__':
print(__version__)

0 comments on commit adc4726

Please sign in to comment.