• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{% extends "!layout.html" %}
2
3{% block header %}
4{%- if outdated %}
5<div id="outdated-warning" style="padding: .5em; text-align: center; background-color: #FFBABA; color: #6A0E0E;">
6    {% trans %}This document is for an old version of Python that is no longer supported.
7    You should upgrade, and read the{% endtrans %}
8    <a href="/3/{{ pagename }}{{ file_suffix }}">{% trans %}Python documentation for the current stable release{% endtrans %}</a>.
9</div>
10{%- endif %}
11
12{%- if is_deployment_preview %}
13<div id="deployment-preview-warning" style="padding: .5em; text-align: center; background-color: #fff2ba; color: #6a580e;">
14  {% trans %}This is a deploy preview created from a <a href="{{ repository_url }}/pull/{{ pr_id }}">pull request</a>.
15  For authoritative documentation, see{% endtrans %}
16  <a href="https://docs.python.org/3/{{ pagename }}{{ file_suffix }}">{% trans %}the current stable release{% endtrans %}</a>.
17</div>
18{%- endif %}
19{% endblock %}
20
21{% block rootrellink %}
22{{ super() }}
23    <li id="cpython-language-and-version">
24      <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
25    </li>
26{% endblock %}
27
28{% block extrahead %}
29    {% if builder == "html" and enable_analytics %}
30      <script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
31    {% endif %}
32    <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
33    {% if builder != "htmlhelp" %}
34      {% if pagename == 'whatsnew/changelog' and not embedded %}
35      <script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
36    {% endif %}
37
38    {# custom CSS; used in asyncio docs! #}
39    <style>
40      @media only screen {{ "{" }}
41        table.full-width-table {{ "{" }}
42            width: 100%;
43        {{ "}" }}
44      {{ "}" }}
45    </style>
46{{ super() }}
47
48{%- if not embedded %}
49            <script type="text/javascript" src="{{ pathto('_static/rtd_switcher.js', 1) }}"></script>
50            <meta name="readthedocs-addons-api-version" content="1">
51{%- endif %}
52{% endblock %}
53