1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Description: Disable pycco
pycco is not available on Debian. Disable it.
Author: Jean-Michel Nirgal Vourgère <jmv_deb@nirgal.com>
Forwarded: no
Last-Update: 2014-07-19
Index: django-session-security/docs/source/conf.py
===================================================================
--- django-session-security.orig/docs/source/conf.py
+++ django-session-security/docs/source/conf.py
@@ -29,22 +29,22 @@ autoclass_content = "both"
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
static_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '_static'))
-import pycco
-for script in ('script',):
- html = pycco.generate_documentation(
- os.path.join(project_root, 'session_security/static/session_security/%s.js' % script),
- static_root
- )
- html = re.sub(
- r'"[^"]*pycco.css',
- '"pycco.css',
- html
- )
- out = os.path.join(static_root, '%s.html' % script)
- if os.path.exists(out):
- os.unlink(out)
- with open(out, 'wb+') as f:
- f.write(six.u(html))
+#import pycco
+#for script in ('script',):
+# html = pycco.generate_documentation(
+# os.path.join(project_root, 'session_security/static/session_security/%s.js' % script),
+# static_root
+# )
+# html = re.sub(
+# r'"[^"]*pycco.css',
+# '"pycco.css',
+# html
+# )
+# out = os.path.join(static_root, '%s.html' % script)
+# if os.path.exists(out):
+# os.unlink(out)
+# with open(out, 'wb+') as f:
+# f.write(six.u(html))
# -- General configuration -----------------------------------------------------
|