Commits

Anonymous committed 225079d

cleaned up gratuitous comment blocks and unnecessary shebang lines

  • Participants
  • Parent commits 3887f0e

Comments (0)

Files changed (5)

beets/__init__.py

-#!/usr/bin/env python
-from beets.library import Library
+from beets.library import Library
-#!/usr/bin/env python
 import sqlite3, os, sys, operator
 from beets.tag import MediaFile, FileTypeError
 from string import Template
 
 
 
-
-##############
-#### ITEM ####
-##############
-
 class Item(object):
     def __init__(self, values, library=None):
         self.library = library
 
 
 
-#################
-#### LIBRARY ####
-#################
-
 class Library(object):
     def __init__(self, path='library.blb'):
         self.path = path
     def save(self):
         """Writes the library to disk (completing a sqlite transaction)."""
         self.conn.commit()
-    
-#!/usr/bin/env python
 """Handles low-level interfacing for files' tags. Wraps mutagen to
 automatically detect file types and provide a unified interface for the
 specific tags Beets is interested in."""
 
 
 
-
-
-
-###########################
-#### UTILITY FUNCTIONS ####
-###########################
-# For dealing with the sort of weirdnesses we find in metadata fields.
+#### utility functions ####
 
 def fromslashed(slashed, sep=u'/'):
     """Extract a pair of items from a slashed string. If only one
 
 
 
-###############################
-#### MediaField descriptor ####
-###############################
-
 class MediaField(object):
     """A descriptor providing access to a particular (abstract) metadata
     field. The various messy parameters control the translation to concrete
 
 
 
-
-#########################
-#### MediaFile class ####
-#########################
-
 class MediaFile(object):
     """Represents a multimedia file on disk and provides access to its
     metadata."""
     def save_tags(self):
         self.tags.save()
     
-    ###########################
-    #### FIELD DEFINITIONS ####
-    ###########################
+    
+    #### field definitions ####
     
     title = MediaField('TIT2', "\xa9nam")
     artist = MediaField('TPE1', "\xa9ART")
     comp = MediaField('TCMP', 'cpil',
                 id3style=MediaField.STYLE_BOOLEAN,
                 mp4type=MediaField.TYPE_BOOLEAN,
-                mp4style=MediaField.STYLE_BOOLEAN)
+                mp4style=MediaField.STYLE_BOOLEAN)
     
     # no command matched
     op.error('invalid command "' + cmd + '"')
-        
     return s
 
 if __name__ == '__main__':
-    unittest.TextTestRunner(verbosity=2).run(suite())
+    unittest.TextTestRunner(verbosity=2).run(suite())