OXIESEC PANEL
- Current Dir:
/
/
lib64
/
python2.7
/
unittest
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/26/2024 03:08:39 AM
rwxr-xr-x
📄
__init__.py
2.72 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
__init__.pyc
2.97 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
__init__.pyo
2.97 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
__main__.py
238 bytes
11/15/2023 03:01:12 PM
rw-r--r--
📄
__main__.pyc
488 bytes
11/15/2023 03:01:23 PM
rw-r--r--
📄
__main__.pyo
488 bytes
11/15/2023 03:01:23 PM
rw-r--r--
📄
case.py
42.95 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
case.pyc
40.7 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
case.pyo
40.7 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
loader.py
13.18 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
loader.pyc
11.11 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
loader.pyo
10.97 KB
11/15/2023 03:01:21 PM
rw-r--r--
📄
main.py
8.87 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
main.pyc
7.81 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
main.pyo
7.81 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
result.py
6.16 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
result.pyc
7.74 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
result.pyo
7.74 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
runner.py
6.38 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
runner.pyc
7.45 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
runner.pyo
7.45 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
signals.py
2.35 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
signals.pyc
2.72 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
signals.pyo
2.72 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
suite.py
9.58 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
suite.pyc
10.29 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
suite.pyo
10.29 KB
11/15/2023 03:01:23 PM
rw-r--r--
📁
test
-
02/26/2024 03:08:39 AM
rwxr-xr-x
📄
util.py
4.5 KB
11/15/2023 03:01:12 PM
rw-r--r--
📄
util.pyc
4.41 KB
11/15/2023 03:01:23 PM
rw-r--r--
📄
util.pyo
4.41 KB
11/15/2023 03:01:23 PM
rw-r--r--
Editing: util.pyc
Close
� 8�Tec @ s� d Z d d l m Z m Z e Z d Z e d � Z d � Z d � Z e d � Z e d d � Z d � Z d � Z d � Z d S( s Various utility functions.i����( t namedtuplet OrderedDictiP c C s\ y t | � } Wn t k r2 t j | � } n X| sL t | � t k rP | S| t d S( Ns [truncated]...( t reprt Exceptiont objectt __repr__t lent _MAX_LENGTH( t objt shortt result( ( s% /usr/lib64/python2.7/unittest/util.pyt safe_repr s c C s d | j | j f S( Ns %s.%s( t __module__t __name__( t cls( ( s% /usr/lib64/python2.7/unittest/util.pyt strclass s c C sh d } } g } g } xEt r]y| | } | | } | | k r} | j | � | d 7} x� | | | k ry | d 7} q\ Wn� | | k r� | j | � | d 7} x | | | k r� | d 7} q� Wn^ | d 7} z% x | | | k r� | d 7} q� WWd | d 7} x | | | k r | d 7} qWXWq t k rY| j | | � | j | | � Pq Xq W| | f S( sr Finds elements in only one or the other of two, sorted input lists. Returns a two-element tuple of lists. The first list contains those elements in the "expected" list but not in the "actual" list, and the second contains those elements in the "actual" list but not in the "expected" list. Duplicate elements in either input list are ignored. i i N( t Truet appendt IndexErrort extend( t expectedt actualt it jt missingt unexpectedt et a( ( s% /usr/lib64/python2.7/unittest/util.pyt sorted_list_difference s: c C s g } g } x� | r� | j � } y | j | � Wn t k rR | j | � n X| r xI | | f D]8 } y x t r� | j | � qr WWqf t k r� qf Xqf Wq q W| rxU | r| j � } | j | � y x t r� | j | � q� WWq� t k rq� Xq� W| | f S| | f S( s� Same behavior as sorted_list_difference but for lists of unorderable items (like dicts). As it does a linear search per item (remove) it has O(n*n) performance. ( t popt removet ValueErrorR R ( R R t ignore_duplicateR R t itemt lst( ( s% /usr/lib64/python2.7/unittest/util.pyt unorderable_list_difference>