<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Requests on Allanderek&#39;s blog</title>
    <link>http://localhost:8080/tags/requests/</link>
    <description>Recent content in Requests on Allanderek&#39;s blog</description>
    <language>en-us</language>
    <lastBuildDate>Fri, 21 Apr 2017 14:41:48 +0000</lastBuildDate>
    <atom:link href="http://localhost:8080/tags/requests/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Conditional refactorings</title>
      <link>http://localhost:8080/posts/conditional-refactorings/</link>
      <pubDate>Fri, 21 Apr 2017 14:41:48 +0000</pubDate>
      <guid>http://localhost:8080/posts/conditional-refactorings/</guid>
      <description>&lt;p&gt;I have been reading through some of the &lt;a href=&#34;https://github.com/kennethreitz/requests&#34;&gt;source code&lt;/a&gt; from the &lt;a href=&#34;https://docs.python-requests.org/en/master/&#34;&gt;requests&lt;/a&gt; library. This is one of the more well-known, well-used, well-loved, and well-praised  Python libraries I know of. I came across some conditional code which I personally would refactor. A first refactor I&amp;rsquo;m pretty confident about whilst a second I&amp;rsquo;m less certain is an improvement. I&amp;rsquo;ll detail them both and welcome any comments anyone has.&lt;/p&gt;
&lt;p&gt;A specific example of this kind of conditional comes in the &lt;a href=&#34;https://web.archive.org/web/20230330093249/https://github.com/kennethreitz/requests/blob/master/requests/adapters.py&#34;&gt;adapters module&lt;/a&gt; specifically the &lt;a href=&#34;https://web.archive.org/web/20230330093249/https://github.com/kennethreitz/requests/blob/master/requests/adapters.py#L200&#34;&gt;cert_verify method&lt;/a&gt;. Here is the code in question, slightly snipped for brevity:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
