Initia QtCore port to python3.

This commit is contained in:
Renato Filho 2011-10-03 18:49:42 -03:00 • committed by Hugo Parente Lima
commit 1e29ab6592
52 changed files with 380 additions and 286 deletions

View file

@ -1,12 +1,14 @@
import unittest
from PySide.QtCore import *
import py3kcompat as py3k
from PySide.QtCore import QIODevice, QTextStream
class MyIODevice (QIODevice):
def readData(self, amount):
return "\0a" * (amount/2)
return py3k.b("\0a" * int(amount/2))
def readLineData(self, maxSize):
return "\0b" * 4
return py3k.b("\0b" * 4)
def atEnd(self):
return False