WebBrowser/Tools/WebBrowserTools.py

branch
QtWebEngine
changeset 4741
f9e1adc69076
parent 4725
b19ff70ba509
child 4763
8ad353f31184
equal deleted inserted replaced
4735:84e78ee0f361 4741:f9e1adc69076
42 contents = dataFile.readAll() 42 contents = dataFile.readAll()
43 dataFile.close() 43 dataFile.close()
44 return contents 44 return contents
45 45
46 return QByteArray() 46 return QByteArray()
47
48
49 def containsSpace(string):
50 """
51 Function to check, if a string contains whitespace characters.
52
53 @param string string to be checked
54 @type str
55 @return flag indicating the presence of at least one whitespace character
56 @rtype bool
57 """
58 for ch in string:
59 if ch.isspace():
60 return True
61
62 return False

eric ide

mercurial