Package: django-session-security / 2.6.7+dfsg-2

disable_pycco Patch series | download
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
50
51
52
53
54
55
56
57
58
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: 2015-01-12

Index: django-session-security/docs/source/conf.py
===================================================================
--- django-session-security.orig/docs/source/conf.py
+++ django-session-security/docs/source/conf.py
@@ -12,7 +12,7 @@
 # serve to show the default.
 
 import re
-import six
+#import six
 import sys, os, os.path
 
 # If extensions (or modules to document with autodoc) are in another directory,
@@ -29,22 +29,22 @@
 
 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 -----------------------------------------------------