]> Savannah Git Hosting - gnulib.git/commitdiff
gnulib-tool.py: Remove unused imports.
authorBruno Haible <bruno@clisp.org>
Mon, 1 Apr 2024 23:18:59 +0000 (01:18 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 2 Apr 2024 11:39:26 +0000 (13:39 +0200)
* pygnulib/GLFileSystem.py: Remove unused imports.
* pygnulib/GLEmiter.py: Likewise.
(GLEmiter.autoconfSnippets): Fix type assertion message.

ChangeLog
pygnulib/GLEmiter.py
pygnulib/GLFileSystem.py

index 48db28222dd83b80946106f7e821e2565073bccb..7b730e56ebe30cc07159ce32afa818cb6865e04d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2024-04-02  Bruno Haible  <bruno@clisp.org>
 
+       gnulib-tool.py: Remove unused imports.
+       * pygnulib/GLFileSystem.py: Remove unused imports.
+       * pygnulib/GLEmiter.py: Likewise.
+       (GLEmiter.autoconfSnippets): Fix type assertion message.
+
        gnulib-tool.py: Fix some IDE warnings.
        * HACKING: Update configuration of warnings.
 
index 7211e24cbe654dcc9191d73350a0e36e5507a1cd..aff00eddf6cc0acd9bfb6a35bb497535cd90091b 100644 (file)
@@ -28,7 +28,6 @@ from .GLConfig import GLConfig
 from .GLModuleSystem import GLModule
 from .GLModuleSystem import GLModuleTable
 from .GLMakefileTable import GLMakefileTable
-from .GLFileSystem import GLFileAssistant
 
 
 #===============================================================================
@@ -290,7 +289,7 @@ class GLEmiter(object):
             if type(module) is not GLModule:
                 raise TypeError('each referenceable module must be a GLModule instance')
         if type(moduletable) is not GLModuleTable:
-            raise TypeError('moduletable must be a GLFileAssistant, not %s'
+            raise TypeError('moduletable must be a GLModuleTable, not %s'
                             % type(moduletable).__name__)
         if type(verifier) is not int:
             raise TypeError('verifier must be an int, not %s'
index 4709b0b09284cd5817e05a0ed56b967f10255a76..10b5ad6d59ec038b6ccc7a00db0a44532280ac55 100644 (file)
@@ -20,10 +20,8 @@ from __future__ import annotations
 #===============================================================================
 import os
 import re
-import codecs
 import filecmp
 import subprocess as sp
-from enum import Enum
 from . import constants
 from pygnulib.enums import CopyAction
 from .GLError import GLError