@@ -578,9 +578,9 @@ def default(self):
578578 or self .app .pargs .wpfc or self .app .pargs .wpsc )):
579579
580580 if ((oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ])
581- or (oldsitetype is 'wp' and oldcachetype is 'basic' )):
582- print ( oldsitetype , oldcachetype )
583- Log .error (self , " Cannot update {0}, {1} {2} to wp basic"
581+ or (oldsitetype == 'wp' and oldcachetype == 'basic' )):
582+
583+ Log .error (self , "Cannot update {0} {1} {2} to wp basic"
584584 .format (ee_domain , oldsitetype , oldcachetype ))
585585
586586 data = dict (site_name = ee_domain , www_domain = ee_www_domain ,
@@ -597,8 +597,8 @@ def default(self):
597597 (self .app .pargs .wpfc or self .app .pargs .wpsc )):
598598
599599 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ]
600- or (oldsitetype is 'wp' and oldcachetype is 'w3tc' )):
601- Log .error (self , " Cannot update {0}, {1} {2} to wp w3tc"
600+ or (oldsitetype == 'wp' and oldcachetype == 'w3tc' )):
601+ Log .error (self , "Cannot update {0}, {1} {2} to wp w3tc"
602602 .format (ee_domain , oldsitetype , oldcachetype ))
603603
604604 data = dict (site_name = ee_domain , www_domain = ee_www_domain ,
@@ -616,7 +616,7 @@ def default(self):
616616 (self .app .pargs .wpsc or self .app .pargs .w3tc )):
617617
618618 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ]
619- or (oldsitetype is 'wp' and oldcachetype is 'wpfc' )):
619+ or (oldsitetype == 'wp' and oldcachetype == 'wpfc' )):
620620 Log .error (self , "Cannot update {0}, {1} {2} to wp wpfc"
621621 .format (ee_domain , oldsitetype , oldcachetype ))
622622
@@ -634,7 +634,7 @@ def default(self):
634634 (self .app .pargs .w3tc or self .app .pargs .wpfc )):
635635
636636 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ]
637- or (oldsitetype is 'wp' and oldcachetype is 'wpsc' )):
637+ or (oldsitetype == 'wp' and oldcachetype == 'wpsc' )):
638638 Log .error (self , "Cannot update {0}, {1} {2} to wp wpsc"
639639 .format (ee_domain , oldsitetype , oldcachetype ))
640640
@@ -657,7 +657,7 @@ def default(self):
657657
658658 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
659659 'wpsubdir' ]
660- or (oldsitetype is 'wpsubdir' and oldcachetype is 'basic' )):
660+ or (oldsitetype == 'wpsubdir' and oldcachetype == 'basic' )):
661661 Log .error (self , " Cannot update {0}, {1} {2} "
662662 "to wpsubdir basic"
663663 .format (ee_domain , oldsitetype , oldcachetype ))
@@ -677,7 +677,7 @@ def default(self):
677677
678678 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
679679 'wpsubdir' ]
680- or (oldsitetype is 'wpsubdir' and oldcachetype is 'w3tc' )):
680+ or (oldsitetype == 'wpsubdir' and oldcachetype == 'w3tc' )):
681681 Log .error (self , " Cannot update {0} {1} {2}"
682682 "to wpsubdir w3tc"
683683 .format (ee_domain , oldsitetype , oldcachetype ))
@@ -698,8 +698,8 @@ def default(self):
698698
699699 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
700700 'wpsubdir' ]
701- or (oldsitetype is 'wpsubdir' and oldcachetype is 'wpfc' )):
702- Log .error (self , " Cannot update {0} {1} {2}"
701+ or (oldsitetype == 'wpsubdir' and oldcachetype == 'wpfc' )):
702+ Log .error (self , "Cannot update {0} {1} {2}"
703703 " to wpsubdir wpfc"
704704 .format (ee_domain , oldsitetype , oldcachetype ))
705705
@@ -718,7 +718,7 @@ def default(self):
718718
719719 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
720720 'wpsubdir' ]
721- or (oldsitetype is 'wpsubdir' and oldcachetype is 'wpsc' )):
721+ or (oldsitetype == 'wpsubdir' and oldcachetype == 'wpsc' )):
722722 Log .error (self , " Cannot update {0} {1} {2}"
723723 " to wpsubdir wpsc"
724724 .format (ee_domain , oldsitetype , oldcachetype ))
@@ -739,7 +739,7 @@ def default(self):
739739
740740 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
741741 'wpsubdomain' ]
742- or (oldsitetype is 'wpsubdomain' and oldcachetype is 'basic' )):
742+ or (oldsitetype == 'wpsubdomain' and oldcachetype == 'basic' )):
743743 Log .error (self , " Cannot update {0} {1} {2}"
744744 " to wpsubdomain basic"
745745 .format (ee_domain , oldsitetype , oldcachetype ))
@@ -760,7 +760,7 @@ def default(self):
760760
761761 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
762762 'wpsubdomain' ] or
763- (oldsitetype is 'wpsubdomain' and oldcachetype is 'w3tc' )):
763+ (oldsitetype == 'wpsubdomain' and oldcachetype == 'w3tc' )):
764764 Log .error (self , " Cannot update {0}, {1} {2}"
765765 " to wpsubdomain w3tc"
766766 .format (ee_domain , oldsitetype , oldcachetype ))
@@ -781,7 +781,7 @@ def default(self):
781781
782782 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
783783 'wpsubdomain' ] or
784- (oldsitetype is 'wpsubdomain' and oldcachetype is 'wpfc' )):
784+ (oldsitetype == 'wpsubdomain' and oldcachetype == 'wpfc' )):
785785 Log .error (self , " Cannot update {0}, {1} {2} "
786786 "to wpsubdomain wpfc"
787787 .format (ee_domain , oldsitetype , oldcachetype ))
@@ -802,7 +802,7 @@ def default(self):
802802
803803 if (oldsitetype not in ['html' , 'php' , 'mysql' , 'wp' ,
804804 'wpsubdomain' ] or
805- (oldsitetype is 'wpsubdomain' and oldcachetype is 'wpsc' )):
805+ (oldsitetype == 'wpsubdomain' and oldcachetype == 'wpsc' )):
806806 Log .error (self , " Cannot update {0}, {1} {2}"
807807 " to wpsubdomain wpsc"
808808 .format (ee_domain , oldsitetype , oldcachetype ))
0 commit comments