]> diplodocus.org Git - flac-archive/blobdiff - flac2mp3
pointless quote change
[flac-archive] / flac2mp3
index 5ebc87396bc0d503ccfd39227fe245b30fed3d31..1e29ad0bc04f727d947667bf6dc8107d747cc02e 100755 (executable)
--- a/flac2mp3
+++ b/flac2mp3
@@ -1,6 +1,6 @@
 #! /usr/bin/env python2.4
 
-'''
+"""
 =head1 NAME
 
 B<flac2mp3> - transcode FLAC file to MP3 files
@@ -48,7 +48,7 @@ Written by Eric Gillespie <epg@pretzelnet.org>.
 
 =cut
 
-''' #' # python-mode is sucks
+"""
 
 import re, sys, traceback
 from optparse import OptionParser
@@ -153,7 +153,8 @@ class Tags(object):
         self._global = {}
         self._tags = {}
     def __len__(self):
-        return len(self._tags)
+        # All files have at least one track.
+        return max(1, len(self._tags))
     def get(self, key, track=None):
         key = key.upper()
         try:
@@ -182,8 +183,8 @@ class Tags(object):
         tags[key].append(value)
 
 def get_tags(fn):
-    '''Return the ARTIST, ALBUM, and DATE tags followed by the TITLE tags
-    in the file FN.'''
+    """Return the ARTIST, ALBUM, and DATE tags followed by the TITLE tags
+    in the file FN."""
 
     tags = Tags()