From 2d605c303b16a509dbec1f0e2b08db933b4f0ec2 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Sun, 4 Sep 2016 19:52:55 +0200 Subject: [PATCH] Added note about *_str return type Signed-off-by: Lars Kiesow --- feedgen/feed.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/feedgen/feed.py b/feedgen/feed.py index d38afdb..18b5b18 100644 --- a/feedgen/feed.py +++ b/feedgen/feed.py @@ -211,6 +211,11 @@ class FeedGenerator(object): :param xml_declaration: If an XML declaration should be added to the output (Default: enabled). :returns: String representation of the ATOM feed. + + **Return type:** The return type may vary between different Python + versions and your encoding parameters passed to this method. For details + have a look at the `lxml documentation + `_ ''' feed, doc = self._create_atom(extensions=extensions) return etree.tostring(feed, pretty_print=pretty, encoding=encoding, @@ -383,6 +388,11 @@ class FeedGenerator(object): :param xml_declaration: If an XML declaration should be added to the output (Default: enabled). :returns: String representation of the RSS feed. + + **Return type:** The return type may vary between different Python + versions and your encoding parameters passed to this method. For details + have a look at the `lxml documentation + `_ ''' feed, doc = self._create_rss(extensions=extensions) return etree.tostring(feed, pretty_print=pretty, encoding=encoding,