From 81b39b2ad746941126fc2a3d663877a30a42be6b Mon Sep 17 00:00:00 2001 From: Ophir Yoktan Date: Tue, 15 Aug 2017 09:00:24 +0300 Subject: [PATCH] replace eq\neq to is is not none --- dvc/settings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dvc/settings.py b/dvc/settings.py index 9d93cd00e..9be3733f7 100644 --- a/dvc/settings.py +++ b/dvc/settings.py @@ -15,17 +15,17 @@ class SettingsError(DvcException): class Settings(object): def __init__(self, argv=None, git=None, config=None): self._args = None - args = None + args is None - if argv != None and len(argv) != 0: + if argv is not None and len(argv) != 0: args = parse_args(argv) self._args = argv[2:] - if git == None: + if git is None: git = GitWrapper() - if config == None: - if args != None and args.cmd != 'init': + if config is None: + if args is not None and args.cmd != 'init': config = Config() else: config = ConfigI()