MCPcopy Create free account
hub / github.com/ActiveState/code / P

Class P

recipes/Python/580642_Dependency_resolution/recipe-580642.py:3–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#!/usr/bin/env python
2
3class P(object):
4 def __init__(self, pkg, requires):
5 self.requires = requires
6 self.pkg = pkg
7 self.Required = 0
8
9 def __str__(self):
10 return self.pkg
11
12 def __repr__(self):
13 return self.__str__()
14
15 def Require(self, pkg):
16 if str(pkg) in self.requires:
17 return True
18 return False
19
20
21objs = []

Callers 1

recipe-580642.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected