[Pywikipedia-bugs] [Maniphest] [Retitled] T202227: Site.server_time sometimes returns a wrong timestamp on the first call.

2018-08-19 Thread Dalba
Dalba renamed this task from "Site.server_time caches the results and returns wrong results in the next call." to "Site.server_time sometimes returns a wrong timestamp on the first call.". TASK DETAILhttps://phabricator.wikimedia.org/T202227EMAIL

[Pywikipedia-bugs] [Maniphest] [Commented On] T202227: Site.server_time caches the results and returns wrong results in the next call.

2018-08-19 Thread Dalba
Dalba added a comment. I think the root cause of the issue is that sometimes the general SiteInfo is loaded using a CachedRequest from a cache file, but gets a new timestamp. We should change Siteinfo class to make it not update timestamps when loading from a CachedRequest or update it with a

[Pywikipedia-bugs] [Maniphest] [Commented On] T202189: diff-checker.py counts bytes not unicodes

2018-08-19 Thread Dalba
Dalba added a comment. There are some packages like wcwidth that can detect the display width of a line, but even them are not 100% accurate. The real display width depends on other factros like user's installed fonts and unicode version. There are also some characters that when put next to each

[Pywikipedia-bugs] [Maniphest] [Closed] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: gerritbot, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci,

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread gerritbot
gerritbot added a comment. Change 453786 merged by jenkins-bot: [pywikibot/core@master] Revert "pywikibot.tools.chars: Update and simplify the code" https://gerrit.wikimedia.org/r/453786TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL

[Pywikipedia-bugs] [Maniphest] [Reopened] T113450: pywikibot-touch.py needs to operate in bot mode

2018-08-19 Thread JAnD
JAnD reopened this task as "Open".JAnD added a comment. I am afraid, this is not because bot is broken, but because database is broken. https://cs.wikisource.org/w/index.php?title=Index:Žák,_František_-_Ohlasy_žalmů.pdf=prev=168733 you can see, there was nothing changed in page, but its size

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba added a comment. In T202238#4513231, @Xqt wrote: btw for what is this test good for? Busing my commit, apparently. :) As the documentation suggests, BMP unicode code points are being converted into two unicode characters under python 2.7, therefore I don't think there's any easy way to

[Pywikipedia-bugs] [Maniphest] [Commented On] T199199: Documentation of -recentchanges is misleading

2018-08-19 Thread gerritbot
gerritbot added a comment. Change 445956 abandoned by Xqt: In return statement of RecentChangesPageGenerator if rcstart > rcend then reverse = True and when rcstart < rcend then reverse = False Reason: https://gerrit.wikimedia.org/r/#/c/pywikibot/core/ /445392/

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Xqt
Xqt added a comment. btw for what is this test good for?TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Dalba, XqtCc: gerritbot, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Gaboe420, Versusxo,

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba added a comment. These are surrogate characters. Perhaps related to this note in the documentation of 2.7: Any Unicode character can be encoded this way, but characters outside the Basic Multilingual Plane (BMP) will be encoded using a surrogate pair if Python is compiled to use 16-bit code

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba added a comment. I set maxDiff to None and here is the result: == FAIL: test_category_cf (tests.tools_chars_tests.CharsTestCase) Test that all characters in _category_cf are actually in Cf.

[Pywikipedia-bugs] [Maniphest] [Updated] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread gerritbot
gerritbot added a project: Patch-For-Review. TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: gerritbotCc: gerritbot, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Gaboe420, Versusxo, Majesticalreaper22,

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread gerritbot
gerritbot added a comment. Change 453786 had a related patch set uploaded (by Dalba; owner: dalba): [pywikibot/core@master] Skip test_category_cf on Pyhton 2.7 https://gerrit.wikimedia.org/r/453786TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL

[Pywikipedia-bugs] [Maniphest] [Claimed] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba claimed this task. TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: gerritbot, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985,

[Pywikipedia-bugs] [Maniphest] [Commented On] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba added a comment. It's only failing on Python 2.7.x and it's because of the old Unicode versions there. I don't think it's worth finding the exact characters that were not in Cf category in those versions, in order to exempt them. I'd suggest skipping this test on 2.7.TASK

[Pywikipedia-bugs] [Maniphest] [Updated] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Dalba
Dalba added a commit: rPWBC02e3830b5826: pywikibot.tools.chars: Update and simplify the code. TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: DalbaCc: Aklapper, Dalba, Xqt, pywikibot-bugs-list, Tbscho, MayS,

[Pywikipedia-bugs] [Maniphest] [Commented On] T202189: diff-checker.py counts bytes not unicodes

2018-08-19 Thread Xqt
Xqt added a comment. There are some hidden characters inside like "়া" (without the last one) which are counted with len() but I have 5 characters available until the rigtht side of a 80 column page. Maybe this is a such a minor problem that we just could decline it. I guess it does not worth to

[Pywikipedia-bugs] [Maniphest] [Lowered Priority] T202189: diff-checker.py counts bytes not unicodes

2018-08-19 Thread Xqt
Xqt lowered the priority of this task from "Low" to "Lowest". TASK DETAILhttps://phabricator.wikimedia.org/T202189EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Framawiki, Aklapper, Dalba, Xqt, pywikibot-bugs-list, Tbscho, MayS, Mdupont, JJMC89,

[Pywikipedia-bugs] [Maniphest] [Created] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Xqt
Xqt created this task.Xqt added projects: Pywikibot-core, Pywikibot-tests.Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION4758== 4759FAIL: test_category_cf

[Pywikipedia-bugs] [Maniphest] [Triaged] T202238: tests.tools_chars_tests.CharsTestCase.test_category_cf fails with AssertionError

2018-08-19 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAILhttps://phabricator.wikimedia.org/T202238EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: XqtCc: Aklapper, Dalba, Xqt, pywikibot-bugs-list, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb,

[Pywikipedia-bugs] [Maniphest] [Commented On] T199199: Documentation of -recentchanges is misleading

2018-08-19 Thread gerritbot
gerritbot added a comment. Change 445392 merged by jenkins-bot: [pywikibot/core@master] pagegenerators._handle_recentchanges: Do not request for reversed results https://gerrit.wikimedia.org/r/445392TASK DETAILhttps://phabricator.wikimedia.org/T199199EMAIL

[Pywikipedia-bugs] [Maniphest] [Edited] T202227: Site.server_time caches the results and returns wrong results in the next call.

2018-08-19 Thread Dalba
Dalba updated the task description. (Show Details) CHANGES TO TASK DESCRIPTION...```lang=python from pywikibot import *...s = Site('fa'en', 'wpbeta''wikipedia')...sleep(52)...sleep(52)...2018-08-19T07:228T11:23:28Z 2018-08-19T10:52:14Z1:03:03Z 2018-08-19T10:52:19Z1:03:06Z ``` Second and third

[Pywikipedia-bugs] [Maniphest] [Created] T202227: Site.server_time caches the results and returns wrong results in the next call.

2018-08-19 Thread Dalba
Dalba created this task.Dalba added a project: Pywikibot-core.Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTIONRun the following script: from pywikibot import * from time import * s = Site('fa', 'wpbeta') print(s.server_time()) sleep(5)

[Pywikipedia-bugs] [Maniphest] [Reassigned] T199199: Documentation of -recentchanges is misleading

2018-08-19 Thread Xqt
Xqt reassigned this task from AdityaJ to Dalba. TASK DETAILhttps://phabricator.wikimedia.org/T199199EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Dalba, XqtCc: zhuyifei1999, gerritbot, Dvorapa, AdityaJ, Xqt, darthbhyrava, Dalba, Aklapper,

[Pywikipedia-bugs] [Maniphest] [Closed] T199199: Documentation of -recentchanges is misleading

2018-08-19 Thread Xqt
Xqt closed this task as "Resolved". TASK DETAILhttps://phabricator.wikimedia.org/T199199EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: AdityaJ, XqtCc: zhuyifei1999, gerritbot, Dvorapa, AdityaJ, Xqt, darthbhyrava, Dalba, Aklapper, pywikibot-bugs-list,

[Pywikipedia-bugs] [Maniphest] [Updated] T167709: Support Wiktionaries on interwikidata.py

2018-08-19 Thread MarcoAurelio
MarcoAurelio removed a project: User-MarcoAurelio. TASK DETAILhttps://phabricator.wikimedia.org/T167709EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: MarcoAurelioCc: PokestarFan, valhallasw, Mpaa, jayvdb, Xqt, Magul, Aklapper, MarcoAurelio,