From 78a427ad2c904fbe8965b111e8a8eb2253ade04d Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 19 Jun 2011 14:46:34 -0700 Subject: [PATCH] Make sure all DistroInfo classes have a .codename method. --- ubuntutools/distro_info.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubuntutools/distro_info.py b/ubuntutools/distro_info.py index 6e6b476..87d4987 100644 --- a/ubuntutools/distro_info.py +++ b/ubuntutools/distro_info.py @@ -110,6 +110,10 @@ class DistroInfo(object): """Check if the given codename is known.""" return codename in self.all + def codename(self, release, date=None, default=None): + """Map codename aliases to the codename they describe""" + return release + def unsupported(self, date=None): """Get list of all unsupported distributions based on the given date.""" if date is None: