Michał Górny avatar Michał Górny committed 72e236c

Drop StringCompat from PMPackageDescription.

Right now, we require users to explcitily request .short or .long

Comments (0)

Files changed (2)


 	def __hash__(self):
 		return hash((str(self), self.state))
-class PMPackageDescription(ABCObject, StringCompat):
+class PMPackageDescription(ABCObject):
 	Description of a package.
-	def __str__(self):
-		"""
-		Stringify to the best package description. In other words, long package
-		description if available, short otherwise.
-		@returns: best package description
-		@rtype: string
-		"""
-		return str(self.long or self.short)
 class PMUseFlag(ABCObject, StringCompat):
 	A base class for a USE flag supported by a package.


 		for p in self._pkgs:
-	def test_description(self):
-		""" Check whether description works as expected. """
-		for p in self._pkgs:
-			self.assertEqual(str(p.description),
-					p.description.long if p.description.long is not None
-					else p.description.short)
 	def test_inherits(self):
 		""" Check whether inherits are an iterable of stringifiables. """
 		for p in self._pkgs:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.