Commit graph

433 commits

Author SHA1 Message Date
7021308c9e
Add call to coinitialize. 2021-09-23 22:49:19 -07:00
5f6d291729
Fix docstring wrapping. 2021-09-23 22:39:09 -07:00
3c82dc64e0
Don't write to streams when pythonw makes them None. 2021-09-23 22:37:55 -07:00
5a2eca486f
Remove backwards compat function output. 2021-09-23 22:37:39 -07:00
bebcd6c7f3
Fix docstring column wrapping. 2021-09-23 22:36:39 -07:00
cd1fce3211
Add aliases is_directory, is_folder -> is_dir. 2021-09-23 22:36:14 -07:00
446626f1ce
Add pathclass.glob, glob_many. 2021-09-23 22:36:01 -07:00
85ea9ec660
Add winglob.glob_many. 2021-09-23 22:34:34 -07:00
f10942fd3f
Remove __del__ because the order of del is not guaranteed.
Sometimes the streamhandler is garbage collected before the
loghandler, in which case this makes a bad error.
2021-09-23 22:34:02 -07:00
6c0233c239
Update downloady with better use of pathclass, vlogging. 2021-09-23 22:32:48 -07:00
ac8e83a11e
Reduce arguments for main_log_context. Deal with argv in main_dec. 2021-09-16 21:46:31 -07:00
d0d7cf2145
Replace in+remove with index+pop.
The code turns out to be longer with these duplicate try-except,
but they are different enough that I can't really condense it
at the moment.
2021-09-16 21:19:46 -07:00
b561fd24b5
Reduce indentation by returning early. 2021-09-16 21:17:36 -07:00
adc99d383e
Call strip on --subject text. 2021-09-16 17:37:38 -07:00
e0f37b986c
Use double backslash even in docstring. 2021-09-13 18:00:56 -07:00
79c4f59cf2
Fully rewrite passwordy. 2021-09-11 11:15:31 -07:00
3032ed135d
Replace prints with stderr. 2021-09-11 11:13:03 -07:00
8d0ba6b946
Set pipeable.stdout, stderr line='' default. 2021-09-11 11:12:38 -07:00
df6a52452a
Use argparse for fusker. 2021-09-11 11:12:00 -07:00
0416f0babf
Discourage writes to pathclass._absolute_path. 2021-09-09 17:30:46 -07:00
d37e6fdf0b
Add networktools.wait_for_internet. 2021-09-08 21:54:03 -07:00
0274b9d4a5
Move checkerboard_image to imagetools. 2021-09-05 01:35:46 -07:00
1c23fbef63
Move truthystring to stringtools. 2021-09-05 01:11:27 -07:00
bdab1331b8
Move cached_endpoint, required_fields to flasktools. 2021-09-03 12:44:00 -07:00
ccd3bf72c0
Add gentools.run. 2021-08-31 19:22:50 -07:00
8eed09c14b
Specifically state that the exception killed the log context. 2021-08-28 14:58:11 -07:00
51d9a5202a
Fix get_all_volumes for 64-bit python. 2021-08-24 22:34:09 -07:00
3d29322cc1
Split get_level_by_argv into own function.
To facilitate other uses of the opt-in flags besides just attaching
to the logger.
2021-08-23 22:42:30 -07:00
e2f4357b15
Add SILENT to get_level_by_name. 2021-08-23 22:41:07 -07:00
d3a1578cca
Add some type annotations to test the waters. 2021-08-22 20:48:34 -07:00
98ee6e82c6
Improve various docstrings. 2021-08-22 20:46:12 -07:00
81f81a6c24
Don't log exit status if --operatornotify/level wasn't passed. 2021-08-22 19:50:04 -07:00
9c880f2825
A few docstring improvements. 2021-08-21 15:20:11 -07:00
4c4fae62cf
Delete clipext.py. 2021-08-17 14:01:00 -07:00
8ce994a54b
Replace use of clipext with pipeable, split_lines=False. 2021-08-17 14:00:29 -07:00
cb5228fe0c
Add argument split_lines for when you just want the whole text.
Calling '\n'.join(pipeable.input()) is not great because in many
situations, you're splitting text and joining it back together again
for no reason. With this option, we can let the code do the right
thing, and use pipeable as a general-purpose inputter in
more situations.
2021-08-17 14:00:11 -07:00
db8c6e42e3
Add TypeError if arg is not a string. 2021-08-17 13:48:57 -07:00
f5e5db1908
Let hms use pipeable.input_many instead of go. 2021-08-17 13:46:47 -07:00
93605e2577
Split long useragent string. 2021-08-13 23:40:29 -07:00
6442e8e40c
Fix ctrlc_return1 to return the wrapped return value. 2021-08-13 23:40:29 -07:00
14dcbda9fd
Add networktools, though some ideas are still not implemented. 2021-08-13 23:40:28 -07:00
1d6f9eee10
Add niceprints.py. 2021-08-13 23:40:28 -07:00
72fdcb2b04
Clarify pipeable.input_many docstring. 2021-08-11 01:01:14 -07:00
cdf551f28a
Let glob_filenames, glob_directories be singular strings. 2021-08-11 01:01:02 -07:00
eddd7b3818
Remove set_level_by_argv. 2021-08-10 11:54:04 -07:00
61db9296c8
Improve some docstrings. 2021-08-10 11:53:55 -07:00
16d9b85e62
Various lint appeasements. 2021-08-10 11:37:01 -07:00
63251b979b
Describe Path parameters in docstring. 2021-08-09 16:27:33 -07:00
81782383a9
Use regular path.join when constructing glob patterns.
I don't like the idea of having an intermediate Path object that isn't
a real path.
2021-08-09 08:36:20 -07:00
41dd3eb0db
Clarify docstring reference to LogHandlerContext. 2021-08-09 08:35:12 -07:00