Commits

Michał Górny committed 36f21ba

Rename old StringCompat -> StringCompat2.

  • Participants
  • Parent commits 72e236c

Comments (0)

Files changed (5)

gentoopm/basepm/atom.py

 
 from abc import abstractmethod, abstractproperty
 
-from ..util import ABCObject, StringCompat, StringifiedComparisons, \
+from ..util import ABCObject, StringCompat2, StringifiedComparisons, \
 		FillMissingComparisons
 
-class PMPackageKey(ABCObject, StringCompat, FillMissingComparisons):
+class PMPackageKey(ABCObject, StringCompat2, FillMissingComparisons):
 	"""
 	A base class for a package key (CP/qualified package name).
 	"""
 	def __str__(self):
 		return self.package
 
-class PMPackageVersion(ABCObject, StringCompat):
+class PMPackageVersion(ABCObject, StringCompat2):
 	"""
 	A base class for a package version.
 	"""

gentoopm/basepm/contents.py

 import os.path
 from abc import abstractmethod, abstractproperty
 
-from ..util import ABCObject, StringCompat
+from ..util import ABCObject, StringCompat2
 
-class PMContentObj(StringCompat):
+class PMContentObj(StringCompat2):
 	def __init__(self, path):
 		self._path = os.path.normpath(path)
 

gentoopm/basepm/depend.py

 
 from abc import abstractmethod, abstractproperty
 
-from ..util import ABCObject, StringCompat
+from ..util import ABCObject, StringCompat2
 
-class PMRequiredUseAtom(StringCompat):
+class PMRequiredUseAtom(StringCompat2):
 	"""
 	An atom for C{REQUIRED_USE} specification.
 	"""

gentoopm/basepm/pkg.py

 import os.path
 from abc import abstractmethod, abstractproperty
 
-from ..util import ABCObject, FillMissingComparisons, StringCompat, EnumTuple
+from ..util import ABCObject, FillMissingComparisons, StringCompat2, EnumTuple
 
 from .atom import PMAtom, PMPackageKey
 from .environ import PMPackageEnvironment
 		"""
 		pass
 
-class PMUseFlag(ABCObject, StringCompat):
+class PMUseFlag(ABCObject, StringCompat2):
 	"""
 	A base class for a USE flag supported by a package.
 	"""
 	def __nonzero__(self):
 		return self.__bool__()
 
-class StringCompat(StringifiedComparisons):
+class StringCompat2(StringifiedComparisons):
 	"""
 	A helper class providing objects with compatibility string functions,
 	working on stringified form of objects. In other words, it lets you use