File: python_2_eol.html

package info (click to toggle)
python-cheroot 9.0.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,052 kB
  • sloc: python: 5,878; makefile: 13; sh: 2
file content (90 lines) | stat: -rw-r--r-- 2,274 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!-- Based on https://github.com/kennethreitz/python-guide/commit/7a58e5c03ab1a21f07367937454c966505ca8af7 -->
<aside id="python27eol">
    <a href="https://pythonclock.org/" target="_blank" title="Python 2.7 EOL Countdown">
        Python 3, the new best practice, is here to stay.
        Python 2 has retired <time></time> ago!
    </a>
    <p>
      Since version 9.0.0 Cheroot has
      <a href="https://python3statement.org" target="_blank">dropped
      support for Python 2</a>,
      but there's still LTS branch for v8 supporting hybrid
      Python 2 and 3 code, which will get bugfixes and security updates.
    </p>
</aside>

<!-- Python 2 EOL Clock -->
<style type="text/css">
  body {
    margin-top: 8em;
  }

  #python27eol {
    position: absolute;
    top: 0;
    left: 0; right: 0;
    height:  auto;
    text-align: center;
    color: white;
    background-color: black;
    font-size: larger;
  }

  #python27eol * {
    color: white;
    background-color: black;
  }

  #python27eol>a {
    display: block;
  }

  #python27eol>p {
    padding: 0 100px;
  }

  @media screen and (max-width: 875px) {
    #python27eol p {
      padding: 0 !important;
    }

    body {
      margin: inherit !important;
      padding: inherit !important;
    }

    div.body {
      min-width: inherit !important;
      width: 100% !important;
    }

    div.documentwrapper {
      margin: inherit !important;
    }

    div.bodywrapper {
      margin: 20px 30px !important;
      padding-top: 190px !important;
    }

    div.sphinxsidebar {
      margin: inherit !important;
      padding: inherit !important;
      width: 100% !important;
    }
  }
</style>

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/countdown/2.6.0/countdown.min.js"></script>
<script src="https://cdn.rawgit.com/icambron/moment-countdown/master/dist/moment-countdown.min.js"></script>

<script>
  var py2_death = moment('2020-01-01').utc().toDate()

  countdown(py2_death, update_time_left, ~(countdown.SECONDS | countdown.MILLISECONDS))

  function update_time_left(moments_left, timer_id) {
    document.querySelector('#python27eol time').innerHTML = moments_left.toHTML("em")
  }
</script>