Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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

""" 

@file 

@brief Various functions about subscriptions 

""" 

 

_example_subscriptions = """ 

<?xml version="1.0" encoding="UTF-8"?> 

<opml version="1.0"> 

<body> 

 

<outline text="XD Blog" 

title="XD Blog" 

type="rss" 

xmlUrl="http://www.xavierdupre.fr/blog/xdbrss.xml" 

htmlUrl="http://www.xavierdupre.fr/blog/xd_blog.html" /> 

 

</body> 

</opml> 

""" 

 

 

def write_subscriptions_example(filename=None): 

""" 

returns an example of a subscriptions file 

 

@param filename if not None, saves the string in that file 

@return example 

""" 

if filename is not None: 

with open(filename, "w", encoding="utf8") as f: 

f.write(_example_subscriptions) 

 

return _example_subscriptions