OSDN Git Service

Remove print statements
authorMichael Curran <mick@kulgan.net>
Sun, 4 Nov 2012 00:58:51 +0000 (10:58 +1000)
committerMichael Curran <mick@kulgan.net>
Sun, 4 Nov 2012 00:58:51 +0000 (10:58 +1000)
source/NVDAObjects/inputComposition.py

index edf5f9a..b7b5c3f 100644 (file)
@@ -12,22 +12,18 @@ def calculateInsertedChars(oldComp,newComp):
        oldLen=len(oldComp)\r
        newLen=len(newComp)\r
        minLen=min(oldLen,newLen)\r
-       print "oldLen %d, newLen %d, minLen %d"%(oldLen,newLen,minLen)\r
        diffStart=0\r
        diffEnd=newLen\r
        for index in xrange(minLen):\r
-               print "checking start: index %d, new %c, old %c"%(index,newComp[index],oldComp[index])\r
                if newComp[index]!=oldComp[index]:\r
                        break\r
                diffStart=index+1\r
        for index in xrange(minLen,0,-1):\r
                backIndex=index-minLen-1\r
-               print "checking end: index %d, backIndex %d, new %c, old %c"%(index,backIndex,newComp[backIndex],oldComp[backIndex])\r
                if newComp[backIndex]!=oldComp[backIndex]:\r
                        break\r
                diffEnd=newLen+backIndex\r
        diffEnd=max(diffEnd,diffStart+(newLen-oldLen))\r
-       print "diffStart %d, diffEnd %d"%(diffStart,diffEnd)\r
        return newComp[diffStart:diffEnd]\r
 \r
 class InputCompositionTextInfo(OffsetsTextInfo):\r