Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 #3

Merged
merged 8 commits into from
Oct 18, 2015
Merged

Python 3 #3

merged 8 commits into from
Oct 18, 2015

Conversation

fetzerch
Copy link
Owner

No description provided.

Switch to Python 3 as both dependencies (python-audio-tools, mutagen)
now support it. The Python 2 support has been dropped in order to
simplify the unicode handling.
Locally disable the PyLint warnings too-many-instance-attributes and
too-many-arguments that are mainly caused by the transcoding hacks.
The warning warning W0142: 'Used * or ** magic' has been removed in
PyLint 1.4.3 hence there is no reason to locally disable it any more.
The line "from multiprocessing import Pool" triggers the following
harmless PyLint warning:
  E0611(no-name-in-module): No name 'Pool' in module 'multiprocessing'

This commit locally disables the warning.
Create a SyncMusic class and create methods from most of the former
functions. This allows getting rid of the globals by creating
private attributes.
Create the destination directory when reading the settings. This
improves usability as the user doesn't have to enter a destination
directory that fully exists.

If there are no input files or if program aborts due to any reason
the created directory stays empty on the disk and is not deleted.
fetzerch added a commit that referenced this pull request Oct 18, 2015
@fetzerch fetzerch merged commit c19ea58 into master Oct 18, 2015
@fetzerch fetzerch deleted the pr3 branch May 24, 2017 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant