Querying API blocklist may result in an infinite loop if there are more blocks in the same second than given bklimit.
Test to reproduce: try query blocklist of Hungarian Wikipedia by 5 blocks. At 2010-03-05T17:52:44Z it will get into an infinite loop because there are 7 blocks at that second (from block id 6456 to 6462).
Use ctrl F here: https://hu.wikipedia.org/w/api.php?action=query&list=blocks&bklimit=1000
My code using Pywikipedia: http://pastebin.com/7UU0bT4f
Version: 1.18.x
Severity: normal