Mahmoud Hashemi
88509c7c8c
bump version for 17.2.0 release
2017-12-15 23:00:05 -08:00
Mahmoud Hashemi
0b3474d33c
add dateutil links to timeutils
2017-12-15 22:52:37 -08:00
Mahmoud Hashemi
c25a6094bb
Merge branch 'jsivak-feature/fix_remap_with_file_iterator'
2017-12-15 22:33:57 -08:00
Mahmoud Hashemi
80813c77be
broaden remap default_enter supported inputs to support files, strings, other iterables, and scalars (no iterability check)
2017-12-15 22:33:36 -08:00
Mahmoud Hashemi
ced1dc2702
test_iterutils: add a test for remap on closed files
2017-12-15 22:32:36 -08:00
Mahmoud Hashemi
9d03c118ad
Merge branch 'feature/fix_remap_with_file_iterator' of git://github.com/jsivak/boltons into jsivak-feature/fix_remap_with_file_iterator
2017-12-13 10:01:58 -08:00
Brant Watson
e8da6fbe35
Fix integer required error in readline()
2017-12-12 11:36:49 -08:00
John Sivak
08775051dd
Refactor; Check for a file-like object by looking for the "read" attribute.
2017-11-18 13:50:46 -05:00
John Sivak
4659dfaeaf
Catch exception when the value is a file-like iterator and its at end of file.
2017-11-13 11:33:23 -05:00
Brant Watson
55a2791b77
Fix line-by-line file iteration in ioutils modules
...
- iterator on self was yielding only the first newline
- added __next__ to match next() for py3 compat
- updated tests
2017-11-09 21:08:18 -08:00
Mahmoud Hashemi
115cded548
Merge branch 'master' of github.com:mahmoud/boltons
2017-10-10 22:26:18 -07:00
Mahmoud Hashemi
9eadcb5a5e
avoid zero-character slugs for one-or-more-character text inputs
2017-10-10 22:25:59 -07:00
immerrr
f3c6ff202b
DeferredValue: fix get_value and caching
2017-09-06 16:33:40 -07:00
immerrr
8a494a9c86
test_formatutils: add a basic test for DeferredValue
2017-09-06 16:33:40 -07:00
Mahmoud Hashemi
48c243ba77
fix a bit of py3 compat with OneToOne, also tweaked the repr
2017-08-19 19:21:43 -07:00
Kurt Rose
71835c149d
fixed OneToOne.update() so that it maintains invariant
2017-08-19 19:16:06 -07:00
Kurt Rose
68ff258e69
added one-to-one class to dictutils
2017-08-19 19:16:06 -07:00
Mahmoud Hashemi
42409c9626
change some doctests to accommodate python 3.7's new timedelta repr
2017-08-19 15:54:24 -07:00
Mahmoud Hashemi
95c4633484
Merge pull request #136 from cjrh/README-tested-all-versions
...
Update README to mention all the tested versions (in travis.yml)
2017-08-13 23:34:04 -07:00
Caleb Hattingh
4e3dac5286
Update README to mention all the tested versions (in travis.yml)
2017-08-14 15:40:05 +10:00
Mahmoud Hashemi
57c9167bc8
Merge pull request #135 from durin42/multifile
...
ioutils: add MultiFileReader to ease concatenation of multiple readers
2017-07-30 00:59:58 -07:00
Mahmoud Hashemi
45c6fc24ff
integrate MultiFileReader into sphinx docs
2017-07-29 19:25:17 -07:00
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
a26a7a8393
pass through arguents in tox.ini
2017-07-29 17:34:30 -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