File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 11language : python
22
33python :
4- - ' 2.6'
4+ - ' 2.6' # TODO remove in v0.11.0
55- ' 2.7'
66- ' 3.3'
77- ' 3.4'
Original file line number Diff line number Diff line change 1- """Helper functions and types to aid with Python 2.5 - 3 support."""
1+ """Helper functions and types to aid with Python 2.6 - 3 support."""
22
33import sys
4+ import warnings
5+
46import pymongo
57
68
9+ # Show a deprecation warning for people using Python v2.6
10+ # TODO remove in mongoengine v0.11.0
11+ if sys .version_info [0 ] == 2 and sys .version_info [1 ] == 6 :
12+ warnings .warn (
13+ 'Python v2.6 support is deprecated and is going to be dropped '
14+ 'entirely in the upcoming v0.11.0 release. Update your Python '
15+ 'version if you want to have access to the latest features and '
16+ 'bug fixes in MongoEngine.' ,
17+ DeprecationWarning
18+ )
19+
720if pymongo .version_tuple [0 ] < 3 :
821 IS_PYMONGO_3 = False
922else :
You can’t perform that action at this time.
0 commit comments