Roy Smith

Results 14 issues of Roy Smith

Add a trailing comma to the example MIDDLEWARE line, so when you copy-paste it somewhere other than the last line of your middleware list, it still works.

Possibly related to #55? ``` import mwparserfromhell wikicode = mwparserfromhell.parse('== Foo ==') for heading in wikicode.filter_headings(): print(repr(heading.title)) ``` prints: `' Foo ' ` i.e. it preserves the whitespace inside the...

# Summary When I run elpy-test with c-c c-t, it emits in the *compilation* buffer: `python -m unittest src.rwt.tests.test_auth.TestUser.test_init ` and my test passes. If I then re-run the test...

Enhancement

I've got version 0.10.0. Running this code: ``` import mwclient site = mwclient.Site('en.wikipedia.org') results = site.usercontributions('RoySmith-Mobile', limit=5) print(len(list(results))) ``` prints: ``` 91 ``` Expected result: it should print "5". As...

https://en.wikipedia.org/wiki/Special:Log?type=block&user=&page=MariaJaydHicky&wpdate=&tagfilter=&subtype= shows that User:MariaJaydHicky has had multiple blocks. But, the following code: ``` #!/usr/bin/env python from mwclient import Site from pprint import pprint site = Site('en.wikipedia.org') blocks = site.blocks(users=['MariaJaydHicky']) for...

If the selected item is long, the text of the selected item overlaps the pull-down triangle. Screenshot attached. If I do: .selectize-input { width: 110% } that seems to fix...

mwparserfromhell==0.6.4 Python 3.9.13 MacOS Monterey test_mainspace_match() passes, but test_talk_match() fails. They should both pass. ``` import mwparserfromhell as mwp def test_mainspace_match(): wikicode = mwp.parse("[[foo]]") link = wikicode.filter_wikilinks()[0] assert link.title.matches("Foo") def...

It took me a bit of head-scratching to figure out why @cache.memoize(timeout=30) @staticmethod def from_nomination(nomination): doesn't work, i.e. you need to do: @staticmethod @cache.memoize(timeout=30) def from_nomination(nomination): following the same logic...

When you decline a submission, you get a banner, "Submission declined on 1 May 2020 by RoySmith (talk)". It would be nice if the date was a link to the...

C-enhancement

Some nodes show up as: ` o "pywiki" ` others show up as ` o