Skip to content

Commit bacae73

Browse files
committed
Remove unused maxsize argument from _init method of queue.Queue
This is a technical debt refactor associated with the changes in commit da3caed; jump to da3caed#diff-6434ffe17438de87d16e80921b320604b05d155909faabf9ad93e86ff68feac3L192
1 parent ee40b3e commit bacae73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/queue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Queue:
3333

3434
def __init__(self, maxsize=0):
3535
self.maxsize = maxsize
36-
self._init(maxsize)
36+
self._init()
3737

3838
# mutex must be held whenever the queue is mutating. All methods
3939
# that acquire mutex must release it before returning. mutex
@@ -203,7 +203,7 @@ def get_nowait(self):
203203
# These will only be called with appropriate locks held
204204

205205
# Initialize the queue representation
206-
def _init(self, maxsize):
206+
def _init(self):
207207
self.queue = deque()
208208

209209
def _qsize(self):

0 commit comments

Comments
 (0)