Kunal Mehta
7e5297fbe6
Drop Python 2 support
Fixes #221 .
преди 4 години
Yuri Astrakhan
aa37425a9b
move smart_list into sub-package/multiple files
Step one of refactoring - making SmartList into its own
package, with each class having its own file. No code
changes were made.
Note that SmartList and ListProxy import each other,
so had to import SmartList as a full package name
rather than use from ... import ... construct.
преди 4 години
Ben Kurtovic
6136b1b205
Make Wikicode.matches() treat _ and space as equivalent ( fixes #216 )
преди 5 години
Ben Kurtovic
708bee59e1
Minor cleanup
преди 5 години
Ben Kurtovic
0ae5f6d641
Fix regression in previous commit on _ListProxy transformations ( fixes #213 )
преди 5 години
Ben Kurtovic
840a88bcd6
Fix Wikicode transformation methods on empty sections ( fixes #212 )
преди 5 години
Ben Kurtovic
d7c755f526
Add Wikicode.contains(), Wikicode.get_ancestors(), Wikicode.get_parent() ( #177 )
преди 7 години
Ben Kurtovic
68ded2f890
Add keep_template_params to Wikicode.strip_code ( #175 )
преди 7 години
Ben Kurtovic
120d6a0366
Fix Wikicode.matches behavior on non-list/tuple iterables.
преди 7 години
Ben Kurtovic
aaffb7f66b
Update copyright for 2016.
преди 8 години
Ben Kurtovic
e71e7b4ece
Update copyright years for 2015; fix whitespace in docs.
преди 9 години
Kunal Mehta
0f16d0c63e
Target documentation for Python 3 usage
2 is dead, long live 3. Mainly turning print info a function
and urllib import fixes
преди 9 години
Ben Kurtovic
87e0079512
Take proper advantage of Sphinx's default domains.
преди 10 години
Ben Kurtovic
bbd4cd97cf
Add tests for some missed things in Wikicode.
преди 10 години
Ben Kurtovic
c95802f9cc
Allow recursing through everything except the forced type ( fixes #70 )
преди 10 години
Ricordisamoa
9108d49d68
fix some typos: occurance → occurrence, parasable → parsable
преди 10 години
Ben Kurtovic
454890ab0d
Fix docstring for Wikicode.strip_code().
преди 10 години
Ben Kurtovic
cf7ab558bf
Make Wikicode.get_sections() much faster ( closes #63 ).
Patch mostly by @spointy .
преди 10 години
Ben Kurtovic
e5f17eea00
Update copyright notices for 2014.
преди 10 години
Ben Kurtovic
1607687c37
Remove unused import; fix indentation.
преди 10 години
Ben Kurtovic
f0a591b323
Move get_children() out of utils.
преди 10 години
Ben Kurtovic
c0fb7c030a
Implement new search protocol in Wikicode.
преди 10 години
Ben Kurtovic
572d7c3014
Refactor out part of _do_search; some efficiency.
преди 10 години
Ben Kurtovic
39c0756130
Make StringMixIn a lot simpler thanks to __getattr__.
преди 10 години
Ben Kurtovic
8df596ba08
Re-added 'flat' argument to Wikicode.get_sections().
Requested by Σ.
преди 10 години
Ben Kurtovic
79bf42df1c
Wikicode.get_sections() now returns sections in the correct order.
Reported by Σ.
преди 10 години
Ben Kurtovic
066049b46a
Update email address.
преди 10 години
Ben Kurtovic
aabe711ee6
Wikicode.matches() can now take a tuple or list.
преди 10 години
Ben Kurtovic
5e6c994c2c
Wikicode.matches() now accepts tuples ( closes #48 )
преди 10 години
Ben Kurtovic
e5ad4639ff
Wikicode.i?filter*()'s matches argument now takes functions ( closes #47 )
Bump version to 0.4.dev.
преди 10 години
Ben Kurtovic
0f1fca75d8
Typo fix.
преди 10 години
Ben Kurtovic
d1a7d25220
Set right context for ExternalLink.url; Wikicode.filter_external_links()
преди 11 години
Ben Kurtovic
943caede7a
Fix for Python 3.
преди 11 години
Ben Kurtovic
bda12c4c36
Reimplement Wikicode._do_search() to support more input types.
преди 11 години
Ben Kurtovic
4ef29c2611
Clean up Wikicode; unify tests for _do_search()-using methods.
преди 11 години
Ben Kurtovic
2f3edde57a
Add a matches() method to Wikicode.
преди 11 години
Ben Kurtovic
02e52185f4
Wikicode's filter() methods now passed recursive=True instead of False.
This is a breaking change for those who rely on default behavior.
преди 11 години
Ben Kurtovic
bbaf09dbf8
Fix docstrings of generated filter methods.
преди 11 години
Ben Kurtovic
4ae10eccf5
Fix bugs in get_sections(); finish test_get_sections()
преди 11 години
Ben Kurtovic
35acc1b812
Fix a couple bugs.
преди 11 години
Ben Kurtovic
0b56f2e267
Improve Wikicode.get_sections(); implement test_get_tree(); part of test_get_sections()
преди 11 години
Ben Kurtovic
f700914caf
Cleanup Wikicode's filter functions; implement test_filter_family().
преди 11 години
Ben Kurtovic
17ac79e796
Build filter methods dynamically.
преди 11 години
Ben Kurtovic
3095a4203f
Finish tests for Wikicode's list-like methods; fix a bug.
преди 11 години
Ben Kurtovic
ee99e6eceb
Fix a bug in Wikicode.set(); implement test_set() and test_index()
преди 11 години
Ben Kurtovic
852c5ff9af
Start TestWikicode; make Wikicode.nodes's setter handle more inputs.
преди 11 години
Ben Kurtovic
8db40689ed
Improve a few things about nodes; simply a method in Wikicode.
преди 11 години
Ben Kurtovic
cd5cc6a7d0
Update copyright notices for 2013.
преди 11 години
Ben Kurtovic
76b299e4fa
Sync from upstream ( 6413ae21da
); some doc updates.
преди 11 години
Ben Kurtovic
aa29a8bd28
Wikilinks in builder; some additions; cleanup.
преди 11 години