[bugfix] Fix for opt.update to prevent deprecation warning
[bugfix] Fix for opt.update to prevent deprecation warning

Change-Id: Ibefe2426a1b0d8b5ae965def17ca77b726a000f0

wikimedia/pywikibot-core,wikimedia/pywikibot-core