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 the {% 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 <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" /> 30 {% if builder != "htmlhelp" %} 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