• 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{% endblock %}
12
13{% block rootrellink %}
14{{ super() }}
15    <li>
16      {%- if switchers is defined %}
17      <span class="language_switcher_placeholder">{{ language or 'en' }}</span>
18      <span class="version_switcher_placeholder">{{ release }}</span>
19      <a href="{{ pathto('index') }}">{% trans %}Documentation {% endtrans %}</a>{{ reldelim1 }}
20      {%- else %}
21      <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}
22      {%- endif %}
23    </li>
24{% endblock %}
25
26{% block extrahead %}
27    <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
28    {% if builder != "htmlhelp" %}
29      {% if switchers is defined and not embedded %}
30      <script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %}
31      {% if pagename == 'whatsnew/changelog' and not embedded %}
32      <script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
33    {% endif %}
34
35    {# custom CSS; used in asyncio docs! #}
36    <style>
37      @media only screen {{ "{" }}
38        table.full-width-table {{ "{" }}
39            width: 100%;
40        {{ "}" }}
41      {{ "}" }}
42    </style>
43{{ super() }}
44{% endblock %}
45