Skip to content

Commit

Permalink
chg: dev: _getDefaultNameForObject made static, because it can be.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicfit committed Jan 7, 2019
1 parent 7c16d97 commit c83713b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eyed3/plugins/classic.py
Expand Up @@ -565,7 +565,8 @@ def printAudioInfo(self, info):
info.mp3_header.sample_freq, info.mp3_header.mode))
printMsg("-" * self.terminal_width)

def _getDefaultNameForObject(self, obj_frame, suffix=""):
@staticmethod
def _getDefaultNameForObject(obj_frame, suffix=""):
if obj_frame.filename:
name_str = obj_frame.filename
else:
Expand Down Expand Up @@ -753,7 +754,6 @@ def printTag(self, tag):
frames = tag.frame_set[fid]
num_frames = len(frames)
count = " x %d" % num_frames if num_frames > 1 else ""
total_bytes = 0
if not tag.isV1():
total_bytes = sum(
tuple(frame.header.data_size + frame.header.size
Expand Down

0 comments on commit c83713b

Please sign in to comment.