diff options
Diffstat (limited to 'venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/progress/spinner.py')
-rw-r--r-- | venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/progress/spinner.py | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/progress/spinner.py b/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/progress/spinner.py deleted file mode 100644 index d67c679..0000000 --- a/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/progress/spinner.py +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | # -*- coding: utf-8 -*- | ||
2 | |||
3 | # Copyright (c) 2012 Giorgos Verigakis <verigak@gmail.com> | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
17 | from __future__ import unicode_literals | ||
18 | from . import Infinite | ||
19 | from .helpers import WriteMixin | ||
20 | |||
21 | |||
22 | class Spinner(WriteMixin, Infinite): | ||
23 | message = '' | ||
24 | phases = ('-', '\\', '|', '/') | ||
25 | hide_cursor = True | ||
26 | |||
27 | def update(self): | ||
28 | i = self.index % len(self.phases) | ||
29 | self.write(self.phases[i]) | ||
30 | |||
31 | |||
32 | class PieSpinner(Spinner): | ||
33 | phases = ['◷', '◶', '◵', '◴'] | ||
34 | |||
35 | |||
36 | class MoonSpinner(Spinner): | ||
37 | phases = ['◑', '◒', '◐', '◓'] | ||
38 | |||
39 | |||
40 | class LineSpinner(Spinner): | ||
41 | phases = ['⎺', '⎻', '⎼', '⎽', '⎼', '⎻'] | ||
42 | |||
43 | class PixelSpinner(Spinner): | ||
44 | phases = ['⣾','⣷', '⣯', '⣟', '⡿', '⢿', '⣻', '⣽'] | ||