OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
usr
/
lib
/
python3
/
dist-packages
/
urwid
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
__init__.py
3.91 KB
11/02/2015 12:08:16 AM
rw-r--r--
📁
__pycache__
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
canvas.py
40.76 KB
01/19/2016 11:55:33 AM
rw-r--r--
📄
command_map.py
3.22 KB
01/19/2016 11:55:34 AM
rw-r--r--
📄
compat.py
1.51 KB
11/02/2015 12:08:16 AM
rw-r--r--
📄
container.py
83.01 KB
01/19/2016 11:55:37 AM
rw-r--r--
📄
curses_display.py
19.82 KB
01/19/2016 11:55:38 AM
rw-r--r--
📄
decoration.py
40.58 KB
01/19/2016 11:55:42 AM
rw-r--r--
📄
display_common.py
30.03 KB
01/19/2016 11:55:38 AM
rw-r--r--
📄
escape.py
13.43 KB
01/19/2016 11:55:36 AM
rw-r--r--
📄
font.py
23.67 KB
01/19/2016 11:55:34 AM
rw-r--r--
📄
graphics.py
28.69 KB
01/19/2016 11:55:34 AM
rw-r--r--
📄
html_fragment.py
7.87 KB
01/19/2016 11:55:34 AM
rw-r--r--
📄
lcd_display.py
15.9 KB
01/19/2016 11:55:32 AM
rw-r--r--
📄
listbox.py
58.2 KB
01/19/2016 11:55:36 AM
rw-r--r--
📄
main_loop.py
44.3 KB
01/19/2016 11:55:32 AM
rw-r--r--
📄
monitored_list.py
16.39 KB
01/19/2016 11:55:42 AM
rw-r--r--
📄
old_str_util.py
9.75 KB
01/19/2016 11:55:36 AM
rw-r--r--
📄
raw_display.py
34.46 KB
01/19/2016 11:55:33 AM
rw-r--r--
📄
signals.py
12.37 KB
01/19/2016 11:55:38 AM
rw-r--r--
📄
split_repr.py
4.26 KB
01/19/2016 11:55:42 AM
rw-r--r--
📄
str_util.cpython-35m-x86_64-linux-gnu.so
16.94 KB
01/19/2016 11:55:48 AM
rw-r--r--
📁
tests
-
10/02/2024 07:52:55 PM
rwxr-xr-x
📄
text_layout.py
16.88 KB
01/19/2016 11:55:39 AM
rw-r--r--
📄
treetools.py
15.2 KB
11/02/2015 12:08:16 AM
rw-r--r--
📄
util.py
12.84 KB
01/19/2016 11:55:36 AM
rw-r--r--
📄
version.py
97 bytes
11/02/2015 12:08:16 AM
rw-r--r--
📄
vterm.py
49.28 KB
01/19/2016 11:55:35 AM
rw-r--r--
📄
web_display.py
30.78 KB
01/19/2016 11:55:35 AM
rw-r--r--
📄
widget.py
59.24 KB
01/19/2016 11:55:42 AM
rw-r--r--
📄
wimp.py
21.05 KB
01/19/2016 11:55:42 AM
rw-r--r--
Editing: compat.py
Close
#!/usr/bin/python # -*- coding: utf-8 -*- # # Urwid python compatibility definitions # Copyright (C) 2011 Ian Ward # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # Urwid web site: http://excess.org/urwid/ import sys try: # python 2.4 and 2.5 compat bytes = bytes except NameError: bytes = str PYTHON3 = sys.version_info > (3, 0) # for iterating over byte strings: # ord2 calls ord in python2 only # chr2 converts an ordinal value to a length-1 byte string # B returns a byte string in all supported python versions # bytes3 creates a byte string from a list of ordinal values if PYTHON3: ord2 = lambda x: x chr2 = lambda x: bytes([x]) B = lambda x: x.encode('iso8859-1') bytes3 = bytes else: ord2 = ord chr2 = chr B = lambda x: x bytes3 = lambda x: bytes().join([chr(c) for c in x])