Skip to content

Commit

Permalink
Fixup attribute error in README example
Browse files Browse the repository at this point in the history
Bump version 1.1.2 for docs release.
  • Loading branch information
lukasschwab committed Jan 13, 2024
1 parent 956cc37 commit 3c2dbd9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import requests
# Requesting a valid JSON feed!
r = requests.get('https://arxiv-feeds.appspot.com/json/test')
# Parse from raw text...
feed_from_text = jf.parse(r.text)
feed_from_text = jf.Feed.parse_string(r.text)
# ...or parse JSON separately.
r_json = r.json()
feed_from_json = jf.Feed.parse(r_json)
Expand Down
2 changes: 1 addition & 1 deletion docs/jsonfeed.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h3 id="parsing-a-json-feed">Parsing a JSON feed</h3>
<span class="c1"># Requesting a valid JSON feed!</span>
<span class="n">r</span> <span class="o">=</span> <span class="n">requests</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">&#39;https://arxiv-feeds.appspot.com/json/test&#39;</span><span class="p">)</span>
<span class="c1"># Parse from raw text...</span>
<span class="n">feed_from_text</span> <span class="o">=</span> <span class="n">jf</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">r</span><span class="o">.</span><span class="n">text</span><span class="p">)</span>
<span class="n">feed_from_text</span> <span class="o">=</span> <span class="n">jf</span><span class="o">.</span><span class="n">Feed</span><span class="o">.</span><span class="n">parse_string</span><span class="p">(</span><span class="n">r</span><span class="o">.</span><span class="n">text</span><span class="p">)</span>
<span class="c1"># ...or parse JSON separately.</span>
<span class="n">r_json</span> <span class="o">=</span> <span class="n">r</span><span class="o">.</span><span class="n">json</span><span class="p">()</span>
<span class="n">feed_from_json</span> <span class="o">=</span> <span class="n">jf</span><span class="o">.</span><span class="n">Feed</span><span class="o">.</span><span class="n">parse</span><span class="p">(</span><span class="n">r_json</span><span class="p">)</span>
Expand Down
2 changes: 1 addition & 1 deletion docs/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

version = "1.1.1"
version = "1.1.2"

with open("README.md", "r") as fh:
long_description = fh.read()
Expand Down

0 comments on commit 3c2dbd9

Please sign in to comment.