Source code for install.python_warning

#!/usr/bin/env python
# -*- coding: utf-8 -*-

#
# Copyright 2016 University of Dundee. All rights reserved.
# Use is subject to license terms supplied in LICENSE.txt

"""
Python helper plugin 
"""

import sys
import platform
import warnings

warnings.warn(
    "This module is deprecated as of OMERO.py 5.6.0", DeprecationWarning)

PYTHON_WARNING = ("Python version %s is not "
                  "supported!" % platform.python_version())


[docs] def py27_only(): if sys.version_info < (2, 7) or sys.version_info >= (2, 8): return False return True