Debian Codegraph @

debian/patches/disable_pycco

raw
1 Description: Disable pycco
2 pycco is not available on Debian. Disable it.
3 Author: Jean-Michel Nirgal Vourgère <[email protected]>
4 Forwarded: no
5 Last-Update: 2015-01-12
6
7 Index: django-session-security/docs/source/conf.py
8 ===================================================================
9 --- django-session-security.orig/docs/source/conf.py
10 +++ django-session-security/docs/source/conf.py
11 @@ -12,7 +12,7 @@
12 # serve to show the default.
13
14 import re
15 -import six
16 +#import six
17 import sys, os, os.path
18
19 # If extensions (or modules to document with autodoc) are in another directory,
20 @@ -29,22 +29,22 @@
21
22 project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../'))
23 static_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '_static'))
24 -import pycco
25 -for script in ('script',):
26 - html = pycco.generate_documentation(
27 - os.path.join(project_root, 'session_security/static/session_security/%s.js' % script),
28 - static_root
29 - )
30 - html = re.sub(
31 - r'"[^"]*pycco.css',
32 - '"pycco.css',
33 - html
34 - )
35 - out = os.path.join(static_root, '%s.html' % script)
36 - if os.path.exists(out):
37 - os.unlink(out)
38 - with open(out, 'wb+') as f:
39 - f.write(six.u(html))
40 +#import pycco
41 +#for script in ('script',):
42 +# html = pycco.generate_documentation(
43 +# os.path.join(project_root, 'session_security/static/session_security/%s.js' % script),
44 +# static_root
45 +# )
46 +# html = re.sub(
47 +# r'"[^"]*pycco.css',
48 +# '"pycco.css',
49 +# html
50 +# )
51 +# out = os.path.join(static_root, '%s.html' % script)
52 +# if os.path.exists(out):
53 +# os.unlink(out)
54 +# with open(out, 'wb+') as f:
55 +# f.write(six.u(html))
56
57 # -- General configuration -----------------------------------------------------
58