@@ -1307,20 +1307,6 @@ def getCharset(charsetType=None):
13071307
13081308 return asciiTbl
13091309
1310- def searchEnvPath (filename ):
1311- retVal = None
1312- path = os .environ .get ("PATH" , "" )
1313- paths = path .split (";" ) if IS_WIN else path .split (":" )
1314-
1315- for _ in paths :
1316- _ = _ .replace (";" , "" )
1317- retVal = os .path .exists (os .path .normpath (os .path .join (_ , filename )))
1318-
1319- if retVal :
1320- break
1321-
1322- return retVal
1323-
13241310def directoryPath (filepath ):
13251311 """
13261312 Returns directory path for a given filepath
@@ -1428,13 +1414,6 @@ def showStaticWords(firstPage, secondPage):
14281414
14291415 logger .info (infoMsg )
14301416
1431- def isWindowsPath (filepath ):
1432- """
1433- Returns True if given filepath is in Windows format
1434- """
1435-
1436- return re .search ("\A[\w]\:\\ \\ " , filepath ) is not None
1437-
14381417def isWindowsDriveLetterPath (filepath ):
14391418 """
14401419 Returns True if given filepath starts with a Windows drive letter
@@ -2467,20 +2446,6 @@ def showHttpErrorCodes():
24672446 for code , count in kb .httpErrorCodes .items ())
24682447 logger .warn (warnMsg )
24692448
2470- def getComparePageRatio (firstPage , secondPage , filtered = False ):
2471- """
2472- Returns comparison ratio between two given pages
2473- """
2474-
2475- if filtered :
2476- (firstPage , secondPage ) = map (getFilteredPageContent , (firstPage , secondPage ))
2477-
2478- seqMatcher = getCurrentThreadData ().seqMatcher
2479- seqMatcher .set_seq1 (firstPage )
2480- seqMatcher .set_seq2 (secondPage )
2481-
2482- return seqMatcher .quick_ratio ()
2483-
24842449def openFile (filename , mode = 'r' ):
24852450 """
24862451 Returns file handle of a given filename
@@ -2734,16 +2699,6 @@ def unsafeSQLIdentificatorNaming(name):
27342699
27352700 return retVal
27362701
2737- def isBinaryData (value ):
2738- """
2739- Tests given value for binary content
2740- """
2741-
2742- retVal = False
2743- if isinstance (value , basestring ):
2744- retVal = reduce (lambda x , y : x or not (y in string .printable or ord (y ) > 255 ), value , False )
2745- return retVal
2746-
27472702def isNoneValue (value ):
27482703 """
27492704 Returns whether the value is unusable (None or '')
0 commit comments