From 6360b16a1164e523cefbacc38407b681952be387 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 27 Aug 2015 19:28:06 +0300 Subject: Add missing import, fix variable name --- obnamlib/plugins/exclude_pathnames_plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'obnamlib/plugins/exclude_pathnames_plugin.py') 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) -- cgit v1.2.1