diff options
author | shimizukawa <shimizukawa@gmail.com> | 2014-01-18 16:30:54 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2014-01-18 16:30:54 +0900 |
commit | 80a0712b8190ca3d55531a9d1fe3205e364437d1 (patch) | |
tree | f439b52f5045200ce9844e474daab9c7a4c2bebf /sphinx | |
parent | f458a7f06e8f18d446fc0bf7cb397b777cf1ef1d (diff) | |
download | sphinx-80a0712b8190ca3d55531a9d1fe3205e364437d1.tar.gz |
Fix: The application now check extra Python versions (3.0, 3.1) to stop invoking. And fix a trivial comment.
Diffstat (limited to 'sphinx')
-rw-r--r-- | sphinx/__init__.py | 3 | ||||
-rw-r--r-- | sphinx/util/osutil.py | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/__init__.py b/sphinx/__init__.py index bbd45b24..2551526f 100644 --- a/sphinx/__init__.py +++ b/sphinx/__init__.py @@ -42,7 +42,8 @@ if '+' in __version__ or 'pre' in __version__: def main(argv=sys.argv): """Sphinx build "main" command-line entry.""" - if sys.version_info[:3] < (2, 6, 0): + if (sys.version_info[:3] < (2, 6, 0) or + (3, 0, 0) <= sys.version_info[:3] < (3, 2, 0)): sys.stderr.write('Error: Sphinx requires at least Python 2.6 to run.\n') return 1 try: diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py index d2f8679e..a5c461a6 100644 --- a/sphinx/util/osutil.py +++ b/sphinx/util/osutil.py @@ -69,10 +69,9 @@ def ensuredir(path): raise -# TODO: This function can be removed because this function is same as os.walk -# of Python2.6, 2.7, 3.2, 3.3. -# HOWEVER, this function is customized to check UnicodeError that obstacle to -# replace the function with the os.walk. +# This function is same as os.walk of Python2.6, 2.7, 3.2, 3.3 except a +# customization that check UnicodeError. +# The customization obstacle to replace the function with the os.walk. def walk(top, topdown=True, followlinks=False): """Backport of os.walk from 2.6, where the *followlinks* argument was added. |