(self, argname, strval)
return None
Convert int string to int.
Convert int string to int.
Convert int string to int .
def _to_int(self, argname, strval):
        """Convert int string to int."""
        if strval:
            try:
                return int(strval)
            except ValueError:
                logging.warning(
                    u'Option `%s=%s` ignored: value should be an integer',
                    argname, strval
                )
        return None
def _to_int ( self , argname , strval ) : if strval : try : return int ( strval ) except ValueError : logging . warning ( u'Option `%s=%s` ignored: value should be an integer' , argname , strval ) return None