8000 craft(gh-pages): update, version "0.18.0" · adamchainz/sentry-python@80af4a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80af4a0

Browse files
committed
craft(gh-pages): update, version "0.18.0"
1 parent 2fbc0a0 commit 80af4a0

17 files changed

+29
-17
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: e15ffc05a7d8d9f501a4740645e42886
3+
config: c1fcbaa8f41f5ab1b96f46a5d5e2daff
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

.doctrees/environment.pickle

491 Bytes
Binary file not shown.

_modules/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>Overview: module code &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>Overview: module code &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>

_modules/sentry_sdk/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>sentry_sdk.api &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>sentry_sdk.api &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>

_modules/sentry_sdk/client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>sentry_sdk.client &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>sentry_sdk.client &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>

_modules/sentry_sdk/hub.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>sentry_sdk.hub &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>sentry_sdk.hub &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>

_modules/sentry_sdk/integrations/logging.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>sentry_sdk.integrations.logging &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>sentry_sdk.integrations.logging &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../../../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>

_modules/sentry_sdk/scope.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>sentry_sdk.scope &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>sentry_sdk.scope &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>

_modules/sentry_sdk/transport.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<html>
55
<head>
66
<meta charset="utf-8" />
7-
<title>sentry_sdk.transport &#8212; sentry-python 0.17.8 documentation</title>
7+
<title>sentry_sdk.transport &#8212; sentry-python 0.18.0 documentation</title>
88
<link rel="stylesheet" href="../../_static/alabaster.css" type="text/css" />
99
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
1010
<script id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
@@ -309,6 +309,17 @@ <h1>Source code for sentry_sdk.transport</h1><div class="highlight"><pre>
309309
<span class="s2">&quot;ca_certs&quot;</span><span class="p">:</span> <span class="n">ca_certs</span> <span class="ow">or</span> <span class="n">certifi</span><span class="o">.</span><span class="n">where</span><span class="p">(),</span>
310310
<span class="p">}</span>
311311

312+
<span class="k">def</span> <span class="nf">_in_no_proxy</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">parsed_dsn</span><span class="p">):</span>
313+
<span class="c1"># type: (Dsn) -&gt; bool</span>
314+
<span class="n">no_proxy</span> <span class="o">=</span> <span class="n">getproxies</span><span class="p">()</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;no&quot;</span><span class="p">)</span>
315+
<span class="k">if</span> <span class="ow">not</span> <span class="n">no_proxy</span><span class="p">:</span>
316+
<span class="k">return</span> <span class="kc">False</span>
317+
<span class="k">for</span> <span class="n">host</span> <span class="ow">in</span> <span class="n">no_proxy</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s2">&quot;,&quot;</span><span class="p">):</span>
318+
<span class="n">host</span> <span class="o">=</span> <span class="n">host</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span>
319+
<span class="k">if</span> <span class="n">parsed_dsn</span><span class="o">.</span><span class="n">host</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="n">host</span><span class="p">)</span> <span class="ow">or</span> <span class="n">parsed_dsn</span><span class="o">.</span><span class="n">netloc</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="n">host</span><span class="p">):</span>
320+
<span class="k">return</span> <span class="kc">True</span>
321+
<span class="k">return</span> <span class="kc">False</span>
322+
312323
<span class="k">def</span> <span class="nf">_make_pool</span><span class="p">(</span>
313324
<span class="bp">self</span><span class="p">,</span>
314325
<span class="n">parsed_dsn</span><span class="p">,</span> <span class="c1"># type: Dsn</span>
@@ -318,14 +329,15 @@ <h1>Source code for sentry_sdk.transport</h1><div class="highlight"><pre>
318329
<span class="p">):</span>
319330
<span class="c1"># type: (...) -&gt; Union[PoolManager, ProxyManager]</span>
320331
<span class="n">proxy</span> <span class="o">=</span> <span class="kc">None</span>
332+
<span class="n">no_proxy</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_in_no_proxy</span><span class="p">(</span><span class="n">parsed_dsn</span><span class="p">)</span>
321333

322334
<span class="c1"># try HTTPS first</span>
323335
<span class="k">if</span> <span class="n">parsed_dsn</span><span class="o">.</span><span class="n">scheme</span> <span class="o">==</span> <span class="s2">&quot;https&quot;</span> <span class="ow">and</span> <span class="p">(</span><span class="n">https_proxy</span> <span class="o">!=</span> <span class="s2">&quot;&quot;</span><span class="p">):</span>
324-
<span class="n">proxy</span> <span class="o">=</span> <span class="n">https_proxy</span> <span class="ow">or</span> <span class="n">getproxies</span><span class="p">()</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;https&quot;</span><span class="p">)</span>
336+
<span class="n">proxy</span> <span class="o">=</span> <span class="n">https_proxy</span> <span class="ow">or</span> <span class="p">(</span><span class="ow">not</span> <span class="n">no_proxy</span> <span class="ow">and</span> <span class="n">getproxies</span><span class="p">()</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;https&quot;</span><span class="p">))</span>
325337

326338
<span class="c1"># maybe fallback to HTTP proxy</span>
327339
<span class="k">if</span> <span class="ow">not</span> <span class="n">proxy</span> <span class="ow">and</span> <span class="p">(</span><span class="n">http_proxy</span> <span class="o">!=</span> <span class="s2">&quot;&quot;</span><span class="p">):</span>
328-
<span class="n">proxy</span> <span class="o">=</span> <span class="n">http_proxy</span> <span class="ow">or</span> <span class="n">getproxies</span><span class="p">()</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;http&quot;</span><span class="p">)</span>
340+
<span class="n">proxy</span> <span class="o">=</span> <span class="n">http_proxy</span> <span class="ow">or</span> <span class="p">(</span><span class="ow">not</span> <span class="n">no_proxy</span> <span class="ow">and</span> <span class="n">getproxies</span><span class="p">()</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;http&quot;</span><span class="p">))</span>
329341

330342
<span class="n">opts</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_pool_options</span><span class="p">(</span><span class="n">ca_certs</span><span class="p">)</span>
331343

_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '0.17.8',
3+
VERSION: '0.18.0',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

0 commit comments

Comments
 (0)
0