Did I find the right examples for you? yes no

All Samples(14)  |  Call(2)  |  Derive(3)  |  Import(9)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/o/p/opbeatcli-2.0.2/opbeatcli/deployment/packages/python.py   opbeatcli(Download)
from .base import BaseDependencyCollector, BaseDependency
from .types import PYTHON_PACKAGE
from ..vcs import VCS, VCS_NAME_MAP
 
 
                    raise DependencyParseError(msg)
 
                kwargs['vcs'] = VCS(**kwargs['vcs'])
                yield PythonDependency(**kwargs)
 

src/o/p/opbeatcli-2.0.2/opbeatcli/deployment/packages/component.py   opbeatcli(Download)
import os
 
from opbeatcli.exceptions import InvalidArgumentError
from ..vcs import VCS, find_vcs_root
from .base import BasePackage

src/r/e/requirements-parser-0.0.6/requirements/requirement.py   requirements-parser(Download)
from __future__ import unicode_literals
import re
from pkg_resources import Requirement as Req
 
from .vcs import VCS, VCS_SCHEMES
            req.revision = groups['revision']
            req.name = groups['name']
            for vcs in VCS:
                if req.uri.startswith(vcs):
                    req.vcs = vcs
            req.revision = groups['revision']
            req.name = groups['name']
            for vcs in VCS:
                if req.uri.startswith(vcs):
                    req.vcs = vcs

src/r/e/requirements-parser-HEAD/requirements/requirement.py   requirements-parser(Download)
from __future__ import unicode_literals
import re
from pkg_resources import Requirement as Req
 
from .vcs import VCS, VCS_SCHEMES
            req.revision = groups['revision']
            req.name = groups['name']
            for vcs in VCS:
                if req.uri.startswith(vcs):
                    req.vcs = vcs
            req.revision = groups['revision']
            req.name = groups['name']
            for vcs in VCS:
                if req.uri.startswith(vcs):
                    req.vcs = vcs

src/o/p/opbeatcli-2.0.2/opbeatcli/deployment/packages/base.py   opbeatcli(Download)
    ExternalCommandError, ExternalCommandNotFoundError
)
from ..vcs import VCS
from .types import PACKAGE_TYPES
 
        }
        if any(vcs_kwargs.values()):
            kwargs['vcs'] = VCS(**vcs_kwargs)
 
        return kwargs