freebsd-ports/graphics/py-sorl-thumbnail/files/patch-docs_conf.py
Martin Wilke b77709c4e7 - Update to 12.4.1
- Changed RUN_DEPENDS (assign to Django 1.11)
- Added LICENSE_FILE
- Added NO_ARCH
- Added DOCS option with the appropriate dependencies
- Changed options to reflect the new possibilities with the pluggable engines and key value stores
- Updated pkg-descr

PR:	228309
Submitted by:	freebsd_ports@k-worx.org
Approved by:	maintainer
Sponsored by:	iXsystems Inc.
2018-05-26 17:14:20 +00:00

17 lines
390 B
Python

--- docs/conf.py.orig 2017-11-21 00:08:00 UTC
+++ docs/conf.py
@@ -15,10 +15,13 @@ import os
import sphinx
import sys
+if sys.version_info < (3,):
+ range = xrange
+
sys.path.insert(0, os.path.pardir)
import sorl
-for j in xrange(0, len(sphinx.__version__)):
+for j in range(0, len(sphinx.__version__)):
try:
version = float(sphinx.__version__[:-j])
break