]> Savannah Git Hosting - gnulib.git/commitdiff
fix pylint warnings
authorDmitry Selyutin <ghostmansd@gmail.com>
Sun, 22 Oct 2017 19:43:04 +0000 (22:43 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Sun, 22 Oct 2017 19:43:04 +0000 (22:43 +0300)
pygnulib/config.py
pygnulib/error.py
pygnulib/parser.py

index c47d99594112ab6fe18e59972c4aa672fec7067c..3baf512bd6b8510006ddcaa2704960846a9fb2f4 100644 (file)
@@ -5,7 +5,6 @@
 
 
 import codecs as _codecs_
-import collections as _collections_
 import os as _os_
 import re as _re_
 
@@ -487,6 +486,7 @@ class Base:
 
     @property
     def copymode(self):
+        """file copy mode ('symlink', 'hardlink' or None)"""
         return self.__table["copymode"]
 
     @copymode.setter
@@ -498,6 +498,7 @@ class Base:
 
     @property
     def local_copymode(self):
+        """file copy mode for local directory ('symlink', 'hardlink' or None)"""
         return self.__table["local_copymode"]
 
     @local_copymode.setter
@@ -509,6 +510,7 @@ class Base:
 
     @property
     def copyrights(self):
+        """update the license copyright text"""
         return bool(self.__table["options"] & Base._Option_.Copyrights)
 
     @copyrights.setter
index 1a278dbcdc563b6e26e325c5cf82554d562276e5..933d28732b5a976eb1fbe45ac23a85eb0be3fefa 100644 (file)
@@ -5,6 +5,7 @@
 
 
 def type_assert(key, value, types):
+    """panic if value has a type different than mentioned in types"""
     typeset = []
     if isinstance(types, type):
         types = [types]
index d5362b51041ac5ae37273434c8fcac9694572328..2d68caab36477600a365a97cae816634834f2a1b 100644 (file)
@@ -12,9 +12,7 @@ from .error import CommandLineError as _CommandLineError_
 from .config import LGPLv2_LICENSE as _LGPLv2_LICENSE_
 from .config import LGPLv3_LICENSE as _LGPLv3_LICENSE_
 from .config import GPLv2_LICENSE as _GPLv2_LICENSE_
-from .config import GPLv3_LICENSE as _GPLv3_LICENSE_
 from .config import LGPL_LICENSE as _LGPL_LICENSE_
-from .config import GPL_LICENSE as _GPL_LICENSE_
 
 
 
@@ -229,9 +227,6 @@ class CommandLine:
 
 
     class _CopyrightsCopyModeOption_(_CopyModeOption_):
-        def __init__(self, *args, **kwargs):
-            super().__init__(*args, **kwargs)
-
         def __call__(self, parser, namespace, value, option=None):
             if not hasattr(namespace, self.dest):
                 setattr(namespace, "copyrights", False)