diff --git a/GenPasswd/__init__.py b/GenPasswd/__init__.py index 961e36f..4b9a684 100644 --- a/GenPasswd/__init__.py +++ b/GenPasswd/__init__.py @@ -1,6 +1,6 @@ """Generate a strong password which includes alphabets, numbers, special characters""" -__version__ = '1.3.3' +__version__ = '1.3.4' from .__main__ import get_argument, generate_password, main from .genpasswd import PasswordGenerator diff --git a/GenPasswd/__main__.py b/GenPasswd/__main__.py index 5b75ce8..25c5a81 100644 --- a/GenPasswd/__main__.py +++ b/GenPasswd/__main__.py @@ -12,7 +12,7 @@ def get_argument(): parser = argparse.ArgumentParser(usage="genpasswd [options]") - parser.add_argument('-v', '--version', action='version', help='show version number and exit.', version="1.3.3") + parser.add_argument('-v', '--version', action='version', help='show version number and exit.', version="1.3.4") group = parser.add_argument_group("to customize Password") group.add_argument("-l", "--length", dest="length", type=int, metavar='', help="to set length to the password") group.add_argument("-n", "--ignore", dest="ignore", metavar='', diff --git a/GenPasswd/genpasswd.py b/GenPasswd/genpasswd.py index 8e29eb9..5a97132 100644 --- a/GenPasswd/genpasswd.py +++ b/GenPasswd/genpasswd.py @@ -92,7 +92,7 @@ def __check(self): self.__error = ValueError('[-] Password length must be less.') def __separated_pass(self): - if self.separator is bool: + if type(self.separator) is bool: self.separator = constants.DEFAULT_SEPARATOR if not self.separator_length: self.separator_length = constants.DEFAULT_SEPARATE_LENGTH diff --git a/setup.py b/setup.py index a51123f..776a571 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setuptools.setup( name='genpasswd', packages=setuptools.find_packages(), - version='1.3.3', + version='1.3.4', license='MIT', description='To generate random and strong passwords.', author='Gowthaman',