diff options
author | Lauro Neto <lauro.neto@openbossa.org> | 2010-04-30 14:43:00 -0300 |
---|---|---|
committer | Lauro Neto <lauro.neto@openbossa.org> | 2010-04-30 14:45:17 -0300 |
commit | 7a0a38ff4b305a85926684f3a10359a6cf804150 (patch) | |
tree | a3828e32cb6218768933cc4bf3aaca4580367447 /examples/network | |
parent | 4bfe52031110dc653027350370b549a79c1dcbcf (diff) |
Fixing static methods
Diffstat (limited to 'examples/network')
-rwxr-xr-x | examples/network/http/http.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/http/http.py b/examples/network/http/http.py index 71af450..0eadb62 100755 --- a/examples/network/http/http.py +++ b/examples/network/http/http.py @@ -76,7 +76,7 @@ class HttpWindow(QtGui.QDialog): if fileName.isEmpty(): fileName = "index.html" - if QtCore.QFile.fileExists(fileName): + if QtCore.QFile.exists(fileName): ret = QtGui.QMessageBox.question(self, self.tr("HTTP"), self.tr("There already exists a file called %1 in the " "current directory.").arg(fileName), @@ -86,7 +86,7 @@ class HttpWindow(QtGui.QDialog): if ret == QtGui.QMessageBox.Cancel: return - QtCore.QFile.fileRemove(fileName) + QtCore.QFile.remove(fileName) self.outFile = QtCore.QFile(fileName) if not self.outFile.open(QtCore.QIODevice.WriteOnly): |