Exploit databaseDownload repository ZIP
GH-bc303729e8eac9d0545e8253ab721603
abeltrar/app_security
Sources for CVE-1999-0211
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files40
abeltrar/app_securityRevision 29cf1dcbe92b
- ↑..Parent directory
- __pycache__/
- _vendor/
- command/
- compat/
- tests/
- __init__.py
- _collections.py
- _functools.py
- _itertools.py
- _log.py
- _macos_compat.py
- _modified.py
- _msvccompiler.py
- archive_util.py
- bcppcompiler.py
- ccompiler.py
- cmd.py
- config.py
- core.py
- cygwinccompiler.py
- debug.py
- dep_util.py
- dir_util.py
- dist.py
- errors.py
- extension.py
- fancy_getopt.py
- file_util.py
- filelist.py
- log.py
- msvc9compiler.py
- msvccompiler.py
- spawn.py
- sysconfig.py
- text_file.py
- unixccompiler.py
- util.py
- version.py
- versionpredicate.py
- zosccompiler.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
venv/Lib/site-packages/setuptools/_distutils/_itertools.py
Python · 1,453 bytes# from more_itertools 10.2
def always_iterable(obj, base_type=(str, bytes)):
"""If *obj* is iterable, return an iterator over its items::
>>> obj = (1, 2, 3)
>>> list(always_iterable(obj))
[1, 2, 3]
If *obj* is not iterable, return a one-item iterable containing *obj*::
>>> obj = 1
>>> list(always_iterable(obj))
[1]
If *obj* is ``None``, return an empty iterable:
>>> obj = None
>>> list(always_iterable(None))
[]
By default, binary and text strings are not considered iterable::
>>> obj = 'foo'
>>> list(always_iterable(obj))
['foo']
If *base_type* is set, objects for which ``isinstance(obj, base_type)``
returns ``True`` won't be considered iterable.
>>> obj = {'a': 1}
>>> list(always_iterable(obj)) # Iterate over the dict's keys
['a']
>>> list(always_iterable(obj, base_type=dict)) # Treat dicts as a unit
[{'a': 1}]
Set *base_type* to ``None`` to avoid any special handling and treat objects
Python considers iterable as iterable:
>>> obj = 'foo'
>>> list(always_iterable(obj, base_type=None))
['f', 'o', 'o']
"""
if obj is None:
return iter(())
if (base_type is not None) and isinstance(obj, base_type):
return iter((obj,))
try:
return iter(obj)
except TypeError:
return iter((obj,))