summaryrefslogtreecommitdiff
path: root/nephilim/song.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-15 10:32:01 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-15 10:32:01 +0100
commit8c111a95f19f4216c300ef8e4d04146fa611efe1 (patch)
treec1b5824387af39a6aeb74889022116b4281101b8 /nephilim/song.py
parentdeb35230eb8ded52e9450cf1cc0aa218c62b9e02 (diff)
Convert to python3.HEADstickers
Diffstat (limited to 'nephilim/song.py')
-rw-r--r--nephilim/song.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/song.py b/nephilim/song.py
index b0891df..66b918f 100644
--- a/nephilim/song.py
+++ b/nephilim/song.py
@@ -19,7 +19,7 @@ from PyQt5 import QtCore
import os
from string import Template
-from common import sec2min
+from .common import sec2min
class Song(dict):
"""
@@ -80,7 +80,7 @@ class Song(dict):
return True
except KeyError:
return False
- def __nonzero__(self):
+ def __bool__(self):
return bool(self['file'])
def expand_tags(self, s):