changeset 39056:716adc7054fa

fix pylint warnings
author Dmitry Selyutin <ghostmansd@gmail.com>
date Sun, 22 Oct 2017 22:43:04 +0300
parents 7635f4e081a2
children 7fa8623f1338
files pygnulib/config.py pygnulib/error.py pygnulib/parser.py
diffstat 3 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/pygnulib/config.py	Sun Oct 22 20:04:06 2017 +0300
+++ b/pygnulib/config.py	Sun Oct 22 22:43:04 2017 +0300
@@ -5,7 +5,6 @@
 
 
 import codecs as _codecs_
-import collections as _collections_
 import os as _os_
 import re as _re_
 
@@ -487,6 +486,7 @@
 
     @property
     def copymode(self):
+        """file copy mode ('symlink', 'hardlink' or None)"""
         return self.__table["copymode"]
 
     @copymode.setter
@@ -498,6 +498,7 @@
 
     @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 @@
 
     @property
     def copyrights(self):
+        """update the license copyright text"""
         return bool(self.__table["options"] & Base._Option_.Copyrights)
 
     @copyrights.setter
--- a/pygnulib/error.py	Sun Oct 22 20:04:06 2017 +0300
+++ b/pygnulib/error.py	Sun Oct 22 22:43:04 2017 +0300
@@ -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]
--- a/pygnulib/parser.py	Sun Oct 22 20:04:06 2017 +0300
+++ b/pygnulib/parser.py	Sun Oct 22 22:43:04 2017 +0300
@@ -12,9 +12,7 @@
 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 _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)