From 857ef4b3cf036ccdb51c85246d846c9875c97b79 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Sun, 28 Jun 2015 22:09:38 +0100 Subject: [PATCH] Start the deprecation of Python 2.6 support See #165 --- docs/about/release-notes.md | 1 + mkdocs/__init__.py | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/docs/about/release-notes.md b/docs/about/release-notes.md index 18aaccb7..e87c222d 100644 --- a/docs/about/release-notes.md +++ b/docs/about/release-notes.md @@ -45,6 +45,7 @@ themes ### Other Changes and Additions * Fix issues when using absolute links to Markdown files. (#628) +* Deprecate support of Python 2.6, pending removal in 0.16.0. (#165) * Add support for [site_description] and [site_author] to the [ReadTheDocs] theme. (#631) * Bugfix: Ensure consistent ordering of auto-populated pages. (#638) diff --git a/mkdocs/__init__.py b/mkdocs/__init__.py index ebec28b3..7daec052 100644 --- a/mkdocs/__init__.py +++ b/mkdocs/__init__.py @@ -1 +1,12 @@ +#!/usr/bin/env python +# coding: utf-8 + +from __future__ import unicode_literals + +import sys + +if sys.version_info < (2, 7): + sys.stderr.write(("WARNING: Support for Python 2.6 will be dropped in the " + "0.16.0 release of MkDocs\n\n")) + __version__ = '0.15.0.dev'