Commit Graph

1153 Commits

Author SHA1 Message Date
Mahmoud Hashemi 141c740f2b docstrings for MultiFileReader 2017-07-29 19:22:55 -07:00
Mahmoud Hashemi d4f5d8a3f3 avoid hasattr bc of py2, per @durin42's comments 2017-07-29 19:09:53 -07:00
Mahmoud Hashemi ba6941ec19 split out text fileobj checking, add support for legacy StringIO, test as much 2017-07-29 19:03:52 -07:00
Mahmoud Hashemi b61d5af99e improved type checking for MultiFileReader (enables more file-like objects including codecs.open etc.), more tests to match. also corrected some error messages with appropriate class name. 2017-07-29 17:33:59 -07:00
Mahmoud Hashemi ae56836176 py26 compat for multifilereader test 2017-07-27 22:27:54 -07:00
Mahmoud Hashemi c178f02aaf Merge branch 'multifile' of git://github.com/durin42/boltons into durin42-multifile 2017-07-27 21:48:10 -07:00
Mahmoud Hashemi b1072c4fa2 Merge branch 'master' of github.com:mahmoud/boltons 2017-07-27 21:48:01 -07:00
Augie Fackler f645c63838 ioutils: add MultiFileReader to ease concatenation of multiple readers
I ended up needing something like this for Mercurial, and mhashemirc
suggested that it would make sense in boltons.
2017-07-27 10:00:36 -04:00
Mahmoud Hashemi 5d3907c5bf Merge pull request #132 from yassineAlouini/patch-1
Small docstring typo correction for OMD.
2017-07-02 14:49:14 -07:00
Yassine Alouini 6e6b7d9496 Small docstring typo correction for OMD. 2017-07-02 21:11:46 +02:00
Mahmoud Hashemi 87b3506362 Merge pull request #130 from sp1ky/master
Update ioutils documentation
2017-06-23 13:42:45 -07:00
David Bannon 5d87249fe0
Update ioutils documentation
* Fix some typos
* Remove duplicated code from the zipfile download example
* Update the zipfile download example to use requests context manager
2017-06-23 09:44:19 +01:00
Mahmoud Hashemi 1c315de4ea Merge pull request #129 from sp1ky/master
Support passing dir argument to TemporaryFile rollover
2017-06-23 01:16:28 -07:00
Mahmoud Hashemi 7cc55ba8a8 test_ioutils: temp_dir argument to dir
for parallelism with TemporaryFile
2017-06-22 23:29:49 -07:00
Mahmoud Hashemi 700a577174 Spooled IO: temp_dir back to dir
for parallelism with TemporaryFile
2017-06-22 23:10:15 -07:00
David Bannon 3af58a2c27
Support passing dir argument to TemporaryFile rollover 2017-06-22 15:58:09 +01:00
Mahmoud Hashemi 620af22dbc Merge pull request #128 from tiwo/master
fix the default arguments of mathutils.clamp
2017-06-18 12:05:53 -07:00
tiwo 91de0cb298 add an example using default arguments of clamp 2017-06-18 15:09:48 +02:00
tiwo 4bae3f5589 fix default arguments of mathutitls.clamp 2017-06-18 14:55:14 +02:00
tiwo 230b856dc3 add some basic tests for clamp
these are expected to fail

* for Python 3, because the argument defaults (None) are incomparable
* for Python 2, because None<x for all ints and floats x, thus clamp(x)
  returns None
2017-06-18 14:53:48 +02:00
Mahmoud Hashemi 459079fd6c add a TODO test 2017-05-06 17:09:42 -07:00
Mahmoud Hashemi 8ec56cd1bf clean up TODO 2017-05-01 12:49:47 -07:00
Mahmoud Hashemi 14208cf6e3 fix kwonly arg removal in funcutils.FunctionBuilder, thus fixing funcutils.wraps, which fixes #123 2017-04-13 23:58:21 -07:00
Mahmoud Hashemi b58ef52a3a userinfo in the url structure docstring 2017-04-13 23:24:48 -07:00
Mahmoud Hashemi 0f8666602c remove a bit of urlutils extraneum 2017-03-28 10:27:47 -07:00
Mahmoud Hashemi 6e7a777621 add unicode test from hyperlink 2017-03-20 18:17:16 -07:00
Mahmoud Hashemi 6ab47ce1dd updating quoting approach per hyperlink fixes 2017-03-20 18:17:05 -07:00
Mahmoud Hashemi 383ae813b9 adding a couple urlutils todos 2017-03-20 18:15:03 -07:00
Mahmoud Hashemi 56c7f2ec8e add a test for escaping nonascii userinfo 2017-03-19 17:41:31 -07:00
Mahmoud Hashemi 41e8b7f6b7 urlutils tests: fix a rather glaring error where roundtrips weren't being executed due to pytest fixture typos 2017-03-18 19:04:58 -07:00
Mahmoud Hashemi e898e54285 fix rfc link rst typo 2017-03-18 17:33:04 -07:00
Mahmoud Hashemi a441038419 urlutils notes: link to rfc port note 2017-03-18 17:27:31 -07:00
Mahmoud Hashemi fc8a694194 ioutils docs: another quick heading tweak 2017-03-18 17:25:25 -07:00
Mahmoud Hashemi 4026708022 urlutils docs: and finally it is looking to be complete. Plenty of links and explanation, hard won. 2017-03-18 13:50:42 -07:00
Mahmoud Hashemi 585be1a2da ioutils docs: maintain title consistency and uniqueness 2017-03-18 12:52:12 -07:00
Mahmoud Hashemi 1574d73edb fix a couple links, probably need to start doing more versionadded stuff 2017-03-17 11:50:55 -07:00
Mahmoud Hashemi d7cd1dc4d5 clarify schematic to not include ':' in the host 2017-03-17 11:30:30 -07:00
Mahmoud Hashemi 7875e12d21 add some RFC references and a nice URL schematic 2017-03-17 11:29:07 -07:00
Mahmoud Hashemi 4f9178c123 at some point readthedocs stopped having a python that supported %e datetime formatting 2017-03-16 01:40:18 -07:00
Mahmoud Hashemi 06b76085c5 adding in-progress urlutils docs to sphinx 2017-03-16 00:00:52 -07:00
Mahmoud Hashemi 0684d52b04 urlutils: docstrings for QueryParamDict 2017-03-15 22:12:02 -07:00
Mahmoud Hashemi 53a53f25da urlutils: docstrings for parse_host and parse_url 2017-03-15 20:53:12 -07:00
Mahmoud Hashemi 953fff8295 urlutils.URL.get_authority: full_quote True->False by default, with_userinfo True->False by default, empty passwords emit no colon in the authority, updated tests for new defaults 2017-03-15 20:37:30 -07:00
Mahmoud Hashemi 8193335a3b adding a few more docstrings, change readthedocs.org to readthedocs.io 2017-03-15 20:04:41 -07:00
Mahmoud Hashemi 4b373e8070 urlutils: add an extra check that trailing slashes are significant 2017-03-15 20:03:47 -07:00
Mahmoud Hashemi 8640462ca3 clarify atomic file rationale 2017-03-15 09:45:34 -07:00
Mahmoud Hashemi 14bfebd6f9 mix up the schemes a bit in the find_all_links test 2017-03-15 09:37:53 -07:00
Mahmoud Hashemi c841a95323 urlutils: SCHEME_PORT_MAP is more descriptive than DEFAULT_PORT_MAP 2017-03-15 09:36:34 -07:00
Mahmoud Hashemi 27305a1e98 adding pytest.ini to enable u'' doctest agnosticism 2017-03-15 00:53:28 -07:00
Mahmoud Hashemi c1d4ce0b42 urlutils docstringing along, change find_all_links default scheme to https to be forward-looking 2017-03-14 23:33:17 -07:00