summaryrefslogtreecommitdiff
path: root/pygnulib/GLFileSystem.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-08-05 15:15:16 +0200
committerBruno Haible <bruno@clisp.org>2022-08-05 15:15:16 +0200
commiteb194fa7a5c8abc2e79ca608466b04dc89a7c67d (patch)
tree4316fe805a17686eb1ce49a3ca63ca9b22529442 /pygnulib/GLFileSystem.py
parent1f0e03e5a3e83d271c4aef05dbbb4850f66cee42 (diff)
downloadgnulib-eb194fa7a5c8abc2e79ca608466b04dc89a7c67d.tar.gz
gnulib-tool.py: Fix 'Undefined variable' errors.
* pygnulib/constants.py: Import codecs. * pygnulib/GLConfig.py (GLConfig.setLibName): Fix local variable reference. * pygnulib/GLFileSystem.py (GLFileSystem.lookup, GLFileAssistant.update): Fix local variable references. * pygnulib/GLEmiter.py (GLEmiter.po_POTFILES_in): Fix reference. * pygnulib/GLTestDir.py (GLMegaTestDir.execute): Define missing local variables.
Diffstat (limited to 'pygnulib/GLFileSystem.py')
-rw-r--r--pygnulib/GLFileSystem.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygnulib/GLFileSystem.py b/pygnulib/GLFileSystem.py
index 7bec0f9e6e..9e6161a24d 100644
--- a/pygnulib/GLFileSystem.py
+++ b/pygnulib/GLFileSystem.py
@@ -88,7 +88,7 @@ class GLFileSystem(object):
GLConfig: localpath.'''
if type(name) is not str:
raise TypeError('name must be a string, not %s'
- % type(module).__name__)
+ % type(name).__name__)
localpath = self.config['localpath']
# Each element in localpath is a directory whose contents overrides
# or amends the result of the lookup in the rest of localpath and
@@ -322,9 +322,9 @@ class GLFileAssistant(object):
raise GLError(17, original)
else: # if self.config['dryrun']
if already_present:
- print('Update file %s (backup in %s)' % (rewritten, backup))
+ print('Update file %s (backup in %s)' % (rewritten, backupname))
else: # if not already_present
- print('Replace file %s (backup in %s)' % (rewritten, backup))
+ print('Replace file %s (backup in %s)' % (rewritten, backupname))
def add_or_update(self, already_present):
'''GLFileAssistant.add_or_update(already_present)