From c1dbaa64f0cafcb9c399fd6a057a23389f8052df Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 17 Feb 2016 19:04:52 +0530 Subject: [PATCH] local variable 'php7' referenced before assignment --- ee/cli/plugins/site.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ee/cli/plugins/site.py b/ee/cli/plugins/site.py index e3181e9d..78c83c25 100644 --- a/ee/cli/plugins/site.py +++ b/ee/cli/plugins/site.py @@ -970,6 +970,11 @@ class EESiteUpdateController(CementBaseController): check_ssl = check_site.is_ssl check_php_version = check_site.php_version + if check_php_version == "7.0": + old_php7 = True + else: + old_php7 = False + if (pargs.password and not (pargs.html or pargs.php or pargs.php7 or pargs.mysql or pargs.wp or pargs.w3tc or pargs.wpfc or pargs.wpsc @@ -1144,11 +1149,6 @@ class EESiteUpdateController(CementBaseController): if pargs.php7: - old_php7 = None - if check_php_version == "7.0": - old_php7 == True - else: - old_php7 == False if php7 is old_php7: if php7 is False: