diff options
author | Zuul <zuul@review.opendev.org> | 2019-05-19 06:14:49 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2019-05-19 06:14:49 +0000 |
commit | a57f84cda6fd4c892bc93d993fc20cff8be3564d (patch) | |
tree | a2c06138c2e92081fb43206baa0e60d5b6c47151 | |
parent | fac974b1a0292dfaa230de569ac97c18f345c23b (diff) | |
parent | 443ed81b43e08123ec53da8bded205d58241ebfb (diff) | |
download | oslo-concurrency-a57f84cda6fd4c892bc93d993fc20cff8be3564d.tar.gz |
Merge "Replace git.openstack.org URLs with opendev.org URLs"
-rw-r--r-- | README.rst | 8 | ||||
-rw-r--r-- | oslo_concurrency/processutils.py | 4 | ||||
-rw-r--r-- | tox.ini | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -7,9 +7,9 @@ Team and repository tags .. Change things from this point on -================= - oslo.concurrency -================= +================ +oslo.concurrency +================ .. image:: https://img.shields.io/pypi/v/oslo.concurrency.svg :target: https://pypi.org/project/oslo.concurrency/ @@ -21,6 +21,6 @@ external processes. * Free software: Apache license * Documentation: https://docs.openstack.org/oslo.concurrency/latest/ -* Source: https://git.openstack.org/cgit/openstack/oslo.concurrency +* Source: https://opendev.org/openstack/oslo.concurrency * Bugs: https://bugs.launchpad.net/oslo.concurrency * Release Notes: https://docs.openstack.org/releasenotes/oslo.concurrency/ diff --git a/oslo_concurrency/processutils.py b/oslo_concurrency/processutils.py index 3866d82..fc815de 100644 --- a/oslo_concurrency/processutils.py +++ b/oslo_concurrency/processutils.py @@ -174,7 +174,7 @@ class ProcessLimits(object): } def __init__(self, **kw): - for limit in self._LIMITS.keys(): + for limit in self._LIMITS: setattr(self, limit, kw.pop(limit, None)) if kw: @@ -184,7 +184,7 @@ class ProcessLimits(object): def prlimit_args(self): """Create a list of arguments for the prlimit command line.""" args = [] - for limit in self._LIMITS.keys(): + for limit in self._LIMITS: val = getattr(self, limit) if val is not None: args.append("%s=%s" % (self._LIMITS[limit], val)) @@ -5,7 +5,7 @@ envlist = py36,py27,pep8 [testenv] install_command = pip install {opts} {packages} deps = - -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} + -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt # We want to support both vanilla stdlib and eventlet monkey patched |