Skip to content

Commit

Permalink
Release 0.8.8 prep. !wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Nov 29, 2018
1 parent 02d511a commit 6a6d590
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 9 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ and has been contributed to by (ordered by date of first contribution):
* pyup-bot <[email protected]>
* Chris Newton <[email protected]>
* [email protected]
* [email protected]
23 changes: 23 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@ Release History

.. :changelog:
v0.8.8 (2018-11-28) : In Ruins
------------------------------

New
~~~
- Follow symlink directories. Fixes #224

Changes
~~~~~~~
- Eyed3.core.AudioInfo `time_secs` is now a float and non-lossy. Fixes #210
- Removed Python 3.3 support.

Fix
~~~
- Better type handling during TLEN [fixup plugin].
- Don't tweak logging by default, only thru `main`. Fixes #243

Other
~~~~~
- Added a separate example for Windows (--add-image <url>) [Addresses
the issue #219] (#220) <[email protected]>


v0.8.7 (2018-06-11) : Aeon
---------------------------

Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
universal = 1

[flake8]
max-line-length = 80
max-line-length = 100
statistics = 1
ignore = E121,E124,E126,E127,E128,E131,E266
ignore = E121,E124,E126,E127,E128,E131,E266,W504

[aliases]
test = pytest
Expand Down
2 changes: 1 addition & 1 deletion src/eyed3/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __parse_version(v): # pragma: nocover


__version__ = "0.8.8"
__release_name__ = ""
__release_name__ = "In Ruins"
__years__ = "2002-2018"

_, __release__, __version_info__ = __parse_version(__version__)
Expand Down
2 changes: 1 addition & 1 deletion src/eyed3/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class Date(object):
"%Y-%m-%d %H:%M:%S",
"%Y-00-00",
]
"""Valid time stamp formats per ISO 8601 and used by \c strptime."""
"""Valid time stamp formats per ISO 8601 and used by `strptime`."""

def __init__(self, year, month=None, day=None,
hour=None, minute=None, second=None):
Expand Down
2 changes: 1 addition & 1 deletion src/eyed3/id3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def strip0Padding(s):

# ID3 v2 style.
# Match (03), (0)Blues, (15) Rap
regex = re.compile("\(([0-9][0-9]*)\)(.*)$")
regex = re.compile(r"\(([0-9][0-9]*)\)(.*)$")
m = regex.match(g_str)
if m:
(id, name) = m.groups()
Expand Down
2 changes: 1 addition & 1 deletion src/eyed3/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _isValidModule(f, d):
log.warning("Plugin '%s' requires packages that are not "
"installed: %s" % ((f, d), ex))
continue
except Exception as ex:
except Exception:
log.exception("Bad plugin '%s'", (f, d))
continue

Expand Down
2 changes: 1 addition & 1 deletion src/eyed3/plugins/display.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def _get_output_for(self, audio_file):
class FunctionMPEGVersionPattern(FunctionPattern, PlaceholderUsagePattern):
NAMES = ["mpeg-version"]
PARAMETERS = [ComplexPattern.ExpectedParameter("output",
default="MPEG#v\, Layer #l")]
default=r"MPEG#v\, Layer #l")]
DESCRIPTION = "MPEG version (with output placeholders #v as version & "\
"#l as layer)"

Expand Down
2 changes: 1 addition & 1 deletion src/eyed3/plugins/pymod.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def start(self, args, config):
mod_file = args.module or _DEFAULT_MOD
try:
self._mod = importmod(mod_file)
except IOError as ex:
except IOError:
raise IOError("Module file not found: %s" % mod_file)
except (NameError, IndentationError, ImportError, SyntaxError) as ex:
raise IOError("Module load error: %s" % str(ex))
Expand Down
5 changes: 4 additions & 1 deletion src/eyed3/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@

if hasattr(os, "fwalk"):
os_walk = functools.partial(os.fwalk, follow_symlinks=True)

def os_walk_unpack(w):
return w[0:3]

else:
os_walk = functools.partial(os.walk, followlinks=True)

def os_walk_unpack(w):
return w

Expand All @@ -55,7 +58,7 @@ def guess_type(self, filename):
return ID3_MIME_TYPE
try:
return self.from_file(filename)
except UnicodeEncodeError as enc_err:
except UnicodeEncodeError:
# https://github.com/ahupp/python-magic/pull/144
return self.from_file(filename.encode("utf-8", 'surrogateescape'))

Expand Down

0 comments on commit 6a6d590

Please sign in to comment.