Jack Wilsdon
34b3cf36b7
Add --force option to beet remove
2016-06-08 19:22:24 +01:00
Adrian Sampson
27bd4c5570
Fix #2041 : encoding detection when stdin is a pipe
2016-06-08 09:52:16 -07:00
Adrian Sampson
1dc61491c6
Remove a bogus bash-completion path ( #2038 )
2016-06-08 09:36:00 -07:00
Adrian Sampson
77b0c17448
Merge pull request #2038 from bismark/patch-1
...
Support Homebrew's bash-completion2
2016-06-08 09:35:07 -07:00
Johnny Robeson
7c39462ae6
add a __bool__ to Results in db.py
2016-06-08 00:58:57 -04:00
Johnny Robeson
790b1b5153
replace some filter/map calls with list comps
...
These are places where the surrounding/calling code needs a list, not an iter.
2016-06-08 00:17:18 -04:00
Johnny Robeson
f7f249f6c6
wrap map() in a list() where necessary for py3
...
It's slightly more inefficient during the py3 transition, but
I still think it's worth minimizing the diff for.
2016-06-06 17:10:21 -04:00
Adrian Sampson
b9845f29db
Capture convert's stderr
...
We were leaking errors to the console without this.
2016-06-06 11:16:50 -07:00
Adrian Sampson
1c1c73b062
Check for convert failures
2016-06-06 11:01:10 -07:00
Adrian Sampson
a9573cea0c
Avoid Windows path prefix for ImageMagick
2016-06-06 10:21:30 -07:00
Ryan Johnson
2fed1cf3f2
formatting
2016-06-06 17:11:09 +01:00
Ryan Johnson
cf397277d2
Support Homebrew's bash-completion2
2016-06-06 12:23:42 +01:00
Adrian Sampson
2021c82a8b
Remove an unused variable
...
That's what I get for coding on Windows without my flake8 plugin!
2016-06-05 12:23:40 -07:00
Adrian Sampson
b752a58ed6
Improve a couple of docstrings
2016-06-05 12:16:41 -07:00
Adrian Sampson
f1b81bc60c
Close all threads' connections
2016-06-05 12:14:50 -07:00
Adrian Sampson
574f3bc732
Main function closes its library
2016-06-05 12:03:30 -07:00
Adrian Sampson
2f9aa41614
Clean up SQLite connections in test harness
...
Windows complains that we can't remove the test database file if open
connections remain.
2016-06-05 11:56:09 -07:00
Johnny Robeson
42d642f1f6
use codecs module to decode to hex in _sc_decode
...
'hex' doesn't exist as a decoder for bytes in py3
2016-06-03 16:18:58 -04:00
Johnny Robeson
e7f70c896d
check imagemagick output with bytes regex too
2016-06-02 21:34:35 -04:00
Johnny Robeson
7467ebaaca
check for imagemagick in command_output with b\'
2016-06-02 21:27:09 -04:00
Johnny Robeson
6c661c4327
Replace __cmp__ with rich comparisons for Distance
2016-06-02 19:27:22 -04:00
Adrian Sampson
2a9be12503
Fix partial commit of change
2016-05-31 15:35:59 -07:00
Adrian Sampson
075cc10d1c
Fix encoding for Windows path resolution
2016-05-31 15:34:17 -07:00
Adrian Sampson
5b2fb8dcdc
Queries with \ are path queries on Windows
2016-05-31 13:29:00 -07:00
Johnny Robeson
330306bbe2
remove bytes casts from object/method resolution code
2016-05-30 23:21:24 -04:00
Johnny Robeson
e6ab231f72
Revert "Remove bytes casting for non-path command args/opts"
...
This reverts commit 2a6e74bc27 .
2016-05-30 22:00:42 -04:00
Johnny Robeson
2a6e74bc27
Remove bytes casting for non-path command args/opts
2016-05-30 21:42:44 -04:00
Johnny Robeson
28c0c95ed9
remove b' from struct (un)packing calls
2016-05-30 20:30:21 -04:00
Johnny Robeson
7a1ca51c49
remove b' from platform checks
2016-05-30 20:29:17 -04:00
Johnny Robeson
023ad9f48f
remove b' from pipline sentinels
2016-05-30 20:28:36 -04:00
Johnny Robeson
cd1f79340f
remove explicit b' from sql query dict key names
2016-05-30 18:50:11 -04:00
Johnny Robeson
88c5fe6069
add missing space in mediafile comment
2016-05-30 15:44:21 -04:00
Johnny Robeson
9193cb3f45
Revert "readd deprecated plugins search with name == b'name'"
...
This reverts commit a5921f625c .
2016-05-30 15:43:12 -04:00
Johnny Robeson
62ba435cd6
keyword args can't be bytes, so remove b' prefix
2016-05-30 01:59:17 -04:00
Johnny Robeson
358c60e43b
reword a comment in mediafile
2016-05-30 01:58:05 -04:00
Johnny Robeson
a5921f625c
readd deprecated plugins search with name == b'name'
...
This is to make sure we can still load plugins based off official
plugins between the time of 9c41c39913 and 71b9fd785c
2016-05-30 01:03:18 -04:00
Adrian Sampson
71b9fd785c
Revert "Do __name__ comparison with bytes and not unicode"
...
This reverts commit 9c41c39913 .
That commit used byte strings for the `if __name__ == '__main__'` pattern,
which was necessary when we were doing unicode_literals. But it is wrong on
Python 3, and now that we're liberated from unicode_literals, we need to go
back to native strings for this comparison.
2016-05-29 19:19:59 -07:00
Johnny Robeson
662bc1858d
use list() on map() when we really want lists not iters
2016-05-29 20:49:06 -04:00
Johnny Robeson
93c5e4b5a8
Remove library import from __init__.py
2016-05-28 17:05:48 -04:00
Markus Unterwaditzer
f2f18d9d56
Fix variable names
2016-05-28 00:26:58 +02:00
Markus Unterwaditzer
0fc07c28bc
Stylefixes
2016-05-28 00:26:57 +02:00
Markus Unterwaditzer
9518f28faa
Fix numeric types
2016-05-28 00:26:57 +02:00
Markus Unterwaditzer
1ae6ce04dd
Run python-modernize across the codebase
2016-05-27 23:13:01 +02:00
Johnny Robeson
b99a6acc54
use next() instead of iter.next() throughout
2016-05-27 17:00:40 -04:00
Adrian Sampson
4d11b9c4f1
Merge pull request #2019 from jrobeson/py3-compat-use-reduce-from-functools
...
use reduce() from functools
2016-05-27 00:10:15 -07:00
Adrian Sampson
a97c9b8c3c
Merge pull request #2017 from jrobeson/py3-compat-exec
...
use exec() in a python3 compatible way
2016-05-27 00:09:45 -07:00
Johnny Robeson
a405a072f7
use reduce() from functools
2016-05-26 23:52:35 -04:00
Johnny Robeson
f1ecf0af10
remove unneeded if PY3 in iter_first
2016-05-26 22:40:55 -04:00
Johnny Robeson
d6d7341314
use exec() in a python3 compatible way
2016-05-26 22:37:41 -04:00
Johnny Robeson
34f17fbf02
remove unused TYPES_TYPE from confit
2016-05-26 21:35:16 -04:00