Some compat apispec functionality could be used in core
Some compat apispec functionality could be used in core

apispec.py is not used in compat but some methods are usable for core too.
Below is a list where you find the old apispec functionality (left)
in core (right) added to README-conversion.txt.

iso -> Timestamp.isoformat
uniso -> Timestamp.strftime('%Y-%m-%d %H:%M:%S')
dt -> Timestamp.totimestampformat
duration -> BlockEntry.duration

Blocks.__init__ -> (* obsolete constructor *)
Blocks.empty -> (* obsolete parameter cleanup *)
Blocks.query -> site.blocks or site.logevents('block')
Blocks.IPsortkey -> (* sort key, not needed * )
Blocks.allblocks ->  site.blocks or site.logevents('block')
Blocks.user -> site.blocks(user=user)
Blocks.IP -> site.blocks(iprange=IP)

Bug: T66835
Change-Id: I310d2b28389d143051afcef5137e60ba20e535ae

hasteur/g13bot_tools_new,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,npdoty/pywikibot,npdoty/pywikibot,happy5214/pywikibot-core,wikimedia/pywikibot-core,happy5214/pywikibot-core,jayvdb/pywikibot-core,PersianWikipedia/pywikibot-core,jayvdb/pywikibot-core,Darkdadaah/pywikibot-core,magul/pywikibot-core,hasteur/g13bot_tools_new,Darkdadaah/pywikibot-core,magul/pywikibot-core