Changeset 4762 for pjproject/trunk/doc/pjsip-book/fetch_trac.py
- Timestamp:
- Feb 24, 2014 11:00:15 AM (10 years ago)
- Location:
- pjproject/trunk/doc/pjsip-book
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/doc/pjsip-book
-
Property
svn:ignore
set to
xml
-
Property
svn:ignore
set to
-
pjproject/trunk/doc/pjsip-book/fetch_trac.py
r4704 r4762 1 1 import urllib2 2 2 import sys 3 import unicodedata 3 4 4 5 def fetch_rst(url): … … 7 8 8 9 fd = urllib2.urlopen(req, timeout=30) 9 body = fd.read() 10 body = fd.read() 11 body = body.replace("\r\n", "\n") 12 13 body = body.decode('utf8', 'ignore').encode('ascii', 'ignore') 10 14 11 15 pos = body.find("{{{") … … 79 83 pages = process_index('index') 80 84 for page in pages: 85 #if not 'endpoint' in page: 86 # continue 81 87 url = url_format % (page) 82 88 fetch_rst(url)
Note: See TracChangeset
for help on using the changeset viewer.