summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/source/conf.py5
-rw-r--r--oslo_concurrency/lockutils.py4
-rw-r--r--tox.ini2
3 files changed, 5 insertions, 6 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index a35d5a5..850bbfe 100755
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -14,8 +14,7 @@
import os
import sys
-import fileinput
-import fnmatch
+
sys.path.insert(0, os.path.abspath('../..'))
# -- General configuration ----------------------------------------------------
@@ -78,4 +77,4 @@ latex_documents = [
]
# Example configuration for intersphinx: refer to the Python standard library.
-#intersphinx_mapping = {'http://docs.python.org/': None}
+# intersphinx_mapping = {'http://docs.python.org/': None}
diff --git a/oslo_concurrency/lockutils.py b/oslo_concurrency/lockutils.py
index 2e61ff3..ea67571 100644
--- a/oslo_concurrency/lockutils.py
+++ b/oslo_concurrency/lockutils.py
@@ -291,7 +291,7 @@ def synchronized_with_prefix(lock_file_prefix):
Redefine @synchronized in each project like so::
(in nova/utils.py)
- from nova.openstack.common import lockutils
+ from oslo_concurrency import lockutils
synchronized = lockutils.synchronized_with_prefix('nova-')
@@ -316,7 +316,7 @@ def remove_external_lock_file_with_prefix(lock_file_prefix):
Redefine remove_external_lock_file_with_prefix in each project like so::
(in nova/utils.py)
- from nova.openstack.common import lockutils
+ from oslo_concurrency import lockutils
synchronized = lockutils.synchronized_with_prefix('nova-')
synchronized_remove = lockutils.remove_external_lock_file_with_prefix(
diff --git a/tox.ini b/tox.ini
index 6510a7f..7c55452 100644
--- a/tox.ini
+++ b/tox.ini
@@ -28,7 +28,7 @@ commands = python setup.py test --coverage --coverage-package-name=oslo_concurre
[flake8]
show-source = True
ignore = H405
-exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
+exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
[hacking]
import_exceptions =