We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0300fb commit 9322bc0Copy full SHA for 9322bc0
1 file changed
qpython-docs/add-analytics.py
@@ -2,10 +2,9 @@
2
with open(sys.argv[1], 'r') as f, open('/tmp/qpydoc.tmp', 'wb') as g, open(os.path.dirname(os.path.abspath(__file__))+'/extra.txt','r') as e:
3
pth = sys.argv[1][1:]
4
extra = "".join(e.readlines()).replace("{{PTH}}",pth)
5
- content = '\n'.join(
+ g.write('\n'.join(
6
filter(lambda s: len(s),
7
map(lambda s:
8
('',extra+"<hr/>")[s=='<div role="contentinfo">']+s,
9
- map(str.strip, f.readlines()))))
10
- g.write(content)
+ map(str.strip, f.readlines())))))
11
os.rename('/tmp/qpydoc.tmp', sys.argv[1])
0 commit comments