Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea125d8 commit 6ec522eCopy full SHA for 6ec522e
1 file changed
lib/core/common.py
@@ -154,7 +154,6 @@ def __init__(self, filenames):
154
self.fp = None
155
self.index = 0
156
self.iter = None
157
- self.cursize = 0
158
self.custom = []
159
self.adjust()
160
self.lock = None
@@ -176,7 +175,6 @@ def adjust(self):
176
175
infoMsg = "loading dictionary from '%s'" % current
177
singleTimeLogMessage(infoMsg)
178
self.fp = open(current, "r")
179
- self.cursize = os.path.getsize(current)
180
self.iter = iter(self.fp)
181
182
self.index += 1
@@ -203,12 +201,6 @@ def next(self):
203
201
self.lock.release()
204
202
return retVal
205
206
- def percentage(self):
207
- retVal = 0
208
- if self.fp:
209
- retVal = round(100.0 * self.fp.tell() / self.cursize)
210
- return retVal
211
-
212
def rewind(self):
213
214
0 commit comments