""" Compatibility support for Python 2.7. Remove when Python 2.7 support is no longer required. """ try: import configparser except ImportError: import ConfigParser as configparser try: input = raw_input except NameError: input = input try: text_type = unicode string_types = unicode, str except NameError: text_type = str string_types = str, try: import cPickle as pickle except ImportError: import pickle try: from itertools import ifilter as filter except ImportError: filter = filter # Taken from six.py def add_metaclass(metaclass): """Class decorator for creating a class with a metaclass.""" def wrapper(cls): orig_vars = cls.__dict__.copy() orig_vars.pop('__dict__', None) orig_vars.pop('__weakref__', None) for slots_var in orig_vars.get('__slots__', ()): orig_vars.pop(slots_var) return metaclass(cls.__name__, cls.__bases__, orig_vars) return wrapper try: import builtins except ImportError: import __builtin__ as builtins
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
backends | Folder | 0755 |
|
|
tests | Folder | 0755 |
|
|
util | Folder | 0755 |
|
|
__init__.py | File | 489 B | 0644 |
|
__main__.py | File | 70 B | 0644 |
|
backend.py | File | 5.29 KB | 0644 |
|
cli.py | File | 3.56 KB | 0644 |
|
core.py | File | 3.9 KB | 0644 |
|
credentials.py | File | 1.33 KB | 0644 |
|
devpi_client.py | File | 199 B | 0644 |
|
errors.py | File | 1.25 KB | 0644 |
|
getpassbackend.py | File | 312 B | 0644 |
|
http.py | File | 1.23 KB | 0644 |
|
py27compat.py | File | 1.04 KB | 0644 |
|
py33compat.py | File | 660 B | 0644 |
|