Mercurial > hg
annotate mercurial/templates/rss/bookmarks.tmpl @ 32160:906da89821ce
py3: use list of bytes rather than bytestring while extending bytes into lists
Python 2:
>>> ls = []
>>> ls.extend(b'abc')
>>> ls
['a', 'b', 'c']
Python 3:
>>> ls = []
>>> ls.extend(b'abc')
>>> ls
[97, 98, 99]
So to make sure things work fine in Py3, this patch does:
>>> ls = []
>>> ls.extend([b'a', b'b', b'c'])
>>> ls
[b'a', b'b', b'c']
After this `hg log -G` works!
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 04 May 2017 04:38:20 +0530 |
parents | b8ede1f79126 |
children |
rev | line source |
---|---|
13858
1046cb663776
hgweb: add missing bookmarks templates to atom/rss styles
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
1 {header} |
29435
b8ede1f79126
hgweb: remove a couple of superfluous spaces in rss style
Anton Shestakov <av6@dwimlabs.net>
parents:
13858
diff
changeset
|
2 <title>{repo|escape}: bookmarks</title> |
13858
1046cb663776
hgweb: add missing bookmarks templates to atom/rss styles
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
3 <description>{repo|escape} bookmark history</description> |
1046cb663776
hgweb: add missing bookmarks templates to atom/rss styles
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
4 {entries%bookmarkentry} |
1046cb663776
hgweb: add missing bookmarks templates to atom/rss styles
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
5 </channel> |
1046cb663776
hgweb: add missing bookmarks templates to atom/rss styles
Yuya Nishihara <yuya@tcha.org>
parents:
diff
changeset
|
6 </rss> |