diff options
Diffstat (limited to 'distutils2/database.py')
-rw-r--r-- | distutils2/database.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/distutils2/database.py b/distutils2/database.py index 6fb30ce..677ef2b 100644 --- a/distutils2/database.py +++ b/distutils2/database.py @@ -161,6 +161,9 @@ class Distribution(object): return '<Distribution %r %s at %r>' % ( self.name, self.version, self.path) + def __str__(self): + return "%s %s" % (self.name, self.version) + def _get_records(self, local=False): results = [] record = self.get_distinfo_file('RECORD') @@ -365,6 +368,9 @@ class EggInfoDistribution(object): return '<EggInfoDistribution %r %s at %r>' % ( self.name, self.version, self.path) + def __str__(self): + return "%s %s" % (self.name, self.version) + def list_installed_files(self, local=False): def _md5(path): |