Add missing docstrings
[snf-image-creator] / image_creator / os_type / ubuntu.py
index e5cb07d..c0ed913 100644 (file)
 # interpreted as representing official policies, either expressed
 # or implied, of GRNET S.A.
 
-from image_creator.os_type.linux import Linux, sysprep
+from image_creator.os_type.linux import Linux
 
 
 class Ubuntu(Linux):
+    """OS class for Ubuntu Linux variants"""
     def __init__(self, rootdev, ghandler, output):
         super(Ubuntu, self).__init__(rootdev, ghandler, output)
 
@@ -42,8 +43,8 @@ class Ubuntu(Linux):
         for app in apps:
             if app['app_name'] == 'kubuntu-desktop':
                 self.meta['OS'] = 'kubuntu'
-                self.meta['DESCRIPTION'] = \
-                        self.meta['DESCRIPTION'].replace('Ubuntu', 'Kubuntu')
+                descr = self.meta['DESCRIPTION'].replace('Ubuntu', 'Kubuntu')
+                self.meta['DESCRIPTION'] = descr
                 break
 
 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :