diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-09-08 21:23:16 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-09-08 21:23:16 -0400 |
commit | 4234e718c20746851b74e95e4531504a245b9036 (patch) | |
tree | f1a18163b46ff23d5dd951814d14db8bcd4b9ebb | |
parent | 91ae8f912c594844e9dd1ec6e5f3c1eb9038f821 (diff) | |
download | pyphosphor-4234e718c20746851b74e95e4531504a245b9036.tar.gz pyphosphor-4234e718c20746851b74e95e4531504a245b9036.zip |
Remove Path class
Unused, and os.path should be favored anyway.
Change-Id: I9ba718e15695d9e14b8893ef09721fb4f90c2b85
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r-- | obmc/utils/misc.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/obmc/utils/misc.py b/obmc/utils/misc.py index f034feb..6071eec 100644 --- a/obmc/utils/misc.py +++ b/obmc/utils/misc.py @@ -15,29 +15,6 @@ # permissions and limitations under the License. -class Path: - def __init__(self, path): - self.parts = filter(bool, path.split('/')) - - def rel(self, first=None, last=None): - # relative - return self.get('', first, last) - - def fq(self, first=None, last=None): - # fully qualified - return self.get('/', first, last) - - def depth(self): - return len(self.parts) - - def get(self, prefix='/', first=None, last=None): - if not first: - first = 0 - if not last: - last = self.depth() - return prefix + '/'.join(self.parts[first:last]) - - def org_dot_openbmc_match(name, sep='.'): matches = [ ['org', 'openbmc'], |