1{% extends "!layout.html" %} 2{% block rootrellink %} 3 <li><img src="{{ pathto('_static/py.png', 1) }}" alt="" 4 style="vertical-align: middle; margin-top: -1px"/></li> 5 <li><a href="https://www.python.org/">Python</a>{{ reldelim1 }}</li> 6 <li> 7 {%- if switchers is defined %} 8 <span class="language_switcher_placeholder">{{ language or 'en' }}</span> 9 <span class="version_switcher_placeholder">{{ release }}</span> 10 <a href="{{ pathto('index') }}">{% trans %}Documentation{% endtrans %}</a>{{ reldelim1 }} 11 {%- else %} 12 <a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }} 13 {%- endif %} 14 </li> 15{% endblock %} 16{% block relbar1 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} 17{% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} 18{% block extrahead %} 19 <link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" /> 20 <link rel="canonical" href="https://docs.python.org/2/{{pagename}}.html" /> 21 {% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %} 22 {% if switchers is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/switchers.js', 1) }}"></script>{% endif %} 23{{ super() }} 24 {% if builder == 'qthelp' %} 25 <style type="text/css"> 26 body { background-color: white; } 27 div.document { background-color: white; } 28 </style> 29 {% endif %} 30{% endblock %} 31{% block footer %} 32 <div class="footer"> 33 © <a href="{{ pathto('copyright') }}">{% trans %}Copyright{% endtrans %}</a> {{ copyright|e }}. 34 <br /> 35 {% trans %}The Python Software Foundation is a non-profit corporation.{% endtrans %} 36 <a href="https://www.python.org/psf/donations/">{% trans %}Please donate.{% endtrans %}</a> 37 <br /> 38 {% trans last_update=last_updated|e %}Last updated on {{ last_update }}.{% endtrans %} 39 {% trans pathto_bugs=pathto('bugs') %}<a href="{{ pathto_bugs }}">Found a bug</a>?{% endtrans %} 40 <br /> 41 {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %} 42 </div> 43{% endblock %} 44{% block sidebarsourcelink %} 45{%- if show_source and has_source and sourcename %} 46<h3>{{ _('This Page') }}</h3> 47<ul class="this-page-menu"> 48 <li><a href="{{ pathto('bugs') }}">{% trans %}Report a Bug{% endtrans %}</a></li> 49 <li><a href="https://github.com/python/cpython/blob/{{ version }}/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}" 50 rel="nofollow">{% trans %}Show Source{% endtrans %}</a> 51 </li> 52</ul> 53{%- endif %} 54{% endblock %} 55