@@ -358,7 +358,7 @@ def __init__(self,opts=None):
358358 if opts .input_tab :
359359 tests = []
360360 for i ,intab in enumerate (opts .input_tab ): # if multiple, make tests
361- if intab .find (',' ) <> - 1 :
361+ if intab .find (',' ) != - 1 :
362362 (gpath ,uname ) = intab .split (',' )
363363 else :
364364 gpath = uname = intab
@@ -436,7 +436,7 @@ def __init__(self,opts=None):
436436 self .interpreter_name = 'SYSTEM'
437437 self .interpreter_version = 'SYSTEM'
438438 self .interpreter_revision = 'SYSTEM'
439- if opts .envshpath <> 'system' : # need to parse out details for our tool_dependency
439+ if opts .envshpath != 'system' : # need to parse out details for our tool_dependency
440440 try : # fragile - depends on common naming convention as at jan 2015 = package_[interp]_v0_v1_v2... = version v0.v1.v2.. is in play
441441 # this ONLY happens at tool generation by an admin - the generated tool always uses the default of system so path is from local env.sh
442442 packdetails = opts .envshpath .split (os .path .sep )[- 4 :- 1 ] # eg ['fubar', 'package_r_3_1_1', '63cdb9b2234c']
@@ -518,7 +518,7 @@ def makeXML(self):
518518 xdict ['interpreter_name' ] = self .interpreter_name
519519 xdict ['requirements' ] = ''
520520 if self .opts .include_dependencies == "yes" :
521- if self .opts .envshpath <> 'system' :
521+ if self .opts .envshpath != 'system' :
522522 xdict ['requirements' ] = self .protorequirements_interpreter % xdict
523523 else :
524524 xdict ['requirements' ] = self .protorequirements
@@ -643,11 +643,11 @@ def makeTooltar(self):
643643 os .mkdir (testdir ) # make tests directory
644644 for i ,intab in enumerate (self .opts .input_tab ):
645645 si = self .opts .input_tab [i ]
646- if si .find (',' ) <> - 1 :
646+ if si .find (',' ) != - 1 :
647647 s = si .split (',' )[0 ]
648648 si = s
649649 dest = os .path .join (testdir ,os .path .basename (si ))
650- if si <> dest :
650+ if si != dest :
651651 shutil .copyfile (si ,dest )
652652 if self .opts .output_tab :
653653 shutil .copyfile (self .opts .output_tab ,os .path .join (testdir ,self .test1Output ))
@@ -765,7 +765,7 @@ def makeHtml(self):
765765 galhtmlpostfix = """</div></body></html>\n """
766766
767767 flist = os .listdir (self .opts .output_dir )
768- flist = [x for x in flist if x <> 'Rplots.pdf' ]
768+ flist = [x for x in flist if x != 'Rplots.pdf' ]
769769 flist .sort ()
770770 html = []
771771 html .append (galhtmlprefix % progname )
@@ -774,7 +774,7 @@ def makeHtml(self):
774774 if len (flist ) > 0 :
775775 logfiles = [x for x in flist if x .lower ().endswith ('.log' )] # log file names determine sections
776776 logfiles .sort ()
777- logfiles = [x for x in logfiles if os .path .abspath (x ) <> os .path .abspath (self .tlog )]
777+ logfiles = [x for x in logfiles if os .path .abspath (x ) != os .path .abspath (self .tlog )]
778778 logfiles .append (os .path .abspath (self .tlog )) # make it the last one
779779 pdflist = []
780780 npdf = len ([x for x in flist if os .path .splitext (x )[- 1 ].lower () == '.pdf' ])
@@ -803,7 +803,7 @@ def makeHtml(self):
803803 realname = os .path .basename (logfname )
804804 sectionname = os .path .splitext (realname )[0 ].split ('_' )[0 ] # break in case _ added to log
805805 ourpdfs = [x for x in pdflist if os .path .basename (x [0 ]).split ('_' )[0 ] == sectionname ]
806- pdflist = [x for x in pdflist if os .path .basename (x [0 ]).split ('_' )[0 ] <> sectionname ] # remove
806+ pdflist = [x for x in pdflist if os .path .basename (x [0 ]).split ('_' )[0 ] != sectionname ] # remove
807807 nacross = 1
808808 npdf = len (ourpdfs )
809809
@@ -866,7 +866,7 @@ def run(self):
866866 Some devteam tools have this defensive stderr read so I'm keeping with the faith
867867 Feel free to update.
868868 """
869- if self .opts .envshpath <> 'system' :
869+ if self .opts .envshpath != 'system' :
870870 shell_source (self .opts .envshpath )
871871 # this only happens at tool generation - the generated tool relies on the dependencies all being set up
872872 # at toolshed installation by sourcing local env.sh
@@ -895,7 +895,7 @@ def run(self):
895895 p = subprocess .Popen (self .cl ,shell = False )
896896 retval = p .wait ()
897897 if self .opts .output_dir :
898- if retval <> 0 and err : # problem
898+ if retval != 0 and err : # problem
899899 print >> sys .stderr ,err
900900 if self .opts .make_HTML :
901901 self .makeHtml ()
0 commit comments