diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-27 19:28:06 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-27 19:28:06 +0300 |
commit | 6360b16a1164e523cefbacc38407b681952be387 (patch) | |
tree | 033edb42a2f6b16e17fd3196b23c870e5f7ffe6b /obnamlib/plugins/exclude_pathnames_plugin.py | |
parent | ff411e136b86a3ceefc1d894cde4d418b5e15ea7 (diff) | |
download | obnam-6360b16a1164e523cefbacc38407b681952be387.tar.gz |
Add missing import, fix variable name
Diffstat (limited to 'obnamlib/plugins/exclude_pathnames_plugin.py')
-rw-r--r-- | obnamlib/plugins/exclude_pathnames_plugin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/obnamlib/plugins/exclude_pathnames_plugin.py b/obnamlib/plugins/exclude_pathnames_plugin.py index 9aad8070..852d29d2 100644 --- a/obnamlib/plugins/exclude_pathnames_plugin.py +++ b/obnamlib/plugins/exclude_pathnames_plugin.py @@ -17,6 +17,7 @@ import hashlib import logging import os +import re import stat import time @@ -94,7 +95,8 @@ class ExcludePathnamesPlugin(obnamlib.ObnamPlugin): try: compiler(regexp) except re.error as e: - msg = ('error compiling regular expression "%s": %s' % (x, e)) + msg = ('error compiling regular expression "%s": %s' % + (regexp, e)) logging.error(msg) self.progress.error(msg) |