blob: 4802bc18f0db58bead9be8451a7d4a0d8003698d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/usr/bin/python
#
# Copyright 2004-2010, Gentoo Foundation
#
# Licensed under the GNU General Public License, v2
#
# $Header$
"""Provides common methods on a package query."""
__all__ = (
'Query',
)
# =======
# Imports
# =======
from gentoolkit.cpv import CPV
#from gentoolkit.helpers import *
# =======
# Classes
# =======
class Query(CPV):
"""Provides common methods on a package query."""
def __init__(self, cpv):
if isinstance(cpv, CPV):
self.cpv = cpv
else:
self.cpv = CPV(cpv)
del cpv
|