Attempt to fix version check so that it was compatible with 2.6

This commit is contained in:
Lukasz Forynski 2015-03-22 21:24:15 +00:00
parent f4c12e4d24
commit d71f2404c6
1 changed files with 2 additions and 3 deletions

View File

@ -27,9 +27,8 @@ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
DEALINGS IN THE SOFTWARE.
'''
import sys
_python3 = sys.version_info.major >= 3
import platform
_python3 = int(platform.python_version_tuple()[0]) >= 3
class multi_key_dict(object):
""" The purpose of this type is to provide a multi-key dictionary.