ArthurPSmith added a comment. |
Please note this is still an issue with the latest pywikibot code and current wikidata release - as of June 23, 2016. The following is the fix I have in the pywikibot core pywikibot/__init__.py file:
instead of
format(value, "+g")
we need:
if math.fabs(value) < 0.001: num_str = float_fix.convert_sc_to_str(float(value)) if value >= 0: num_str = '+{0}'.format(num_str) else: num_str = format(value, "+g") return num_str
TASK DETAIL
EMAIL PREFERENCES
To: ArthurPSmith
Cc: Aklapper, StudiesWorld, pywikibot-bugs-list, ArthurPSmith, Mdupont, D3r1ck01, Izno, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Mbch331
Cc: Aklapper, StudiesWorld, pywikibot-bugs-list, ArthurPSmith, Mdupont, D3r1ck01, Izno, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs