| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
| |
We're going to be packaging this for our system and the inconsistent
naming only makes that harder. Decide on one name, and one name only.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Even though the python 3.9 documentation for shutil.move [1] states that
"[..] a path-like object for both src and dst" is accepted, it does not
in fact support bytes as arguments. This is because shutil.move calls
_dstinsrc [2] which tries to compare bytes with str via str.endswith.
Python seems to be aware of this [3], but has not yet fixed any of these
problems. For now just decode both bytes objects so shutil.move works.
[1] https://docs.python.org/3.9/library/shutil.html?highlight=shutil%20move#shutil.move
[2] https://github.com/python/cpython/blob/a58ebcc701dd6c43630df941481475ff0f615a81/Lib/shutil.py#L829-L836
[3] https://bugs.python.org/issue46727
|
|
|
|
|
|
| |
os.rename fails when moving files between devices or filesystems.
Instead use shutil.move which uses os.rename or falls back to copying
the files and removing the originals.
|
| |
|
|
|
|
|
| |
This was needed in a previous version of the 'browse' plugin, but we
forgot to remove it from setup.py.
|
| |
|
|
|