1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.util.path_set</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.util.html"><font color="#ffffff">util</font></a>.path_set</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/util/path_set.py">telemetry/internal/util/path_set.py</a></font></td></tr></table> 13 <p><tt># Copyright 2014 The Chromium Authors. All rights reserved.<br> 14# Use of this source code is governed by a BSD-style license that can be<br> 15# found in the LICENSE file.</tt></p> 16<p> 17<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 18<tr bgcolor="#aa55cc"> 19<td colspan=3 valign=bottom> <br> 20<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 21 22<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 23<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="collections.html">collections</a><br> 24</td><td width="25%" valign=top><a href="os.html">os</a><br> 25</td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 26<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 27<tr bgcolor="#ee77aa"> 28<td colspan=3 valign=bottom> <br> 29<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 30 31<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 32<td width="100%"><dl> 33<dt><font face="helvetica, arial"><a href="_abcoll.html#MutableSet">_abcoll.MutableSet</a>(<a href="_abcoll.html#Set">_abcoll.Set</a>) 34</font></dt><dd> 35<dl> 36<dt><font face="helvetica, arial"><a href="telemetry.internal.util.path_set.html#PathSet">PathSet</a> 37</font></dt></dl> 38</dd> 39</dl> 40 <p> 41<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 42<tr bgcolor="#ffc8d8"> 43<td colspan=3 valign=bottom> <br> 44<font color="#000000" face="helvetica, arial"><a name="PathSet">class <strong>PathSet</strong></a>(<a href="_abcoll.html#MutableSet">_abcoll.MutableSet</a>)</font></td></tr> 45 46<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 47<td colspan=2><tt>A set of paths.<br> 48 <br> 49All mutation methods can take both directories or individual files, but the<br> 50iterator yields the individual files. All paths are automatically normalized.<br> </tt></td></tr> 51<tr><td> </td> 52<td width="100%"><dl><dt>Method resolution order:</dt> 53<dd><a href="telemetry.internal.util.path_set.html#PathSet">PathSet</a></dd> 54<dd><a href="_abcoll.html#MutableSet">_abcoll.MutableSet</a></dd> 55<dd><a href="_abcoll.html#Set">_abcoll.Set</a></dd> 56<dd><a href="_abcoll.html#Sized">_abcoll.Sized</a></dd> 57<dd><a href="_abcoll.html#Iterable">_abcoll.Iterable</a></dd> 58<dd><a href="_abcoll.html#Container">_abcoll.Container</a></dd> 59<dd><a href="__builtin__.html#object">__builtin__.object</a></dd> 60</dl> 61<hr> 62Methods defined here:<br> 63<dl><dt><a name="PathSet-__contains__"><strong>__contains__</strong></a>(self, path)</dt></dl> 64 65<dl><dt><a name="PathSet-__init__"><strong>__init__</strong></a>(self, iterable<font color="#909090">=None</font>)</dt></dl> 66 67<dl><dt><a name="PathSet-__iter__"><strong>__iter__</strong></a>(self)</dt></dl> 68 69<dl><dt><a name="PathSet-__len__"><strong>__len__</strong></a>(self)</dt></dl> 70 71<dl><dt><a name="PathSet-add"><strong>add</strong></a>(self, path)</dt></dl> 72 73<dl><dt><a name="PathSet-discard"><strong>discard</strong></a>(self, path)</dt></dl> 74 75<hr> 76Data and other attributes defined here:<br> 77<dl><dt><strong>__abstractmethods__</strong> = frozenset([])</dl> 78 79<hr> 80Methods inherited from <a href="_abcoll.html#MutableSet">_abcoll.MutableSet</a>:<br> 81<dl><dt><a name="PathSet-__iand__"><strong>__iand__</strong></a>(self, it)</dt></dl> 82 83<dl><dt><a name="PathSet-__ior__"><strong>__ior__</strong></a>(self, it)</dt></dl> 84 85<dl><dt><a name="PathSet-__isub__"><strong>__isub__</strong></a>(self, it)</dt></dl> 86 87<dl><dt><a name="PathSet-__ixor__"><strong>__ixor__</strong></a>(self, it)</dt></dl> 88 89<dl><dt><a name="PathSet-clear"><strong>clear</strong></a>(self)</dt><dd><tt>This is slow (creates N new iterators!) but effective.</tt></dd></dl> 90 91<dl><dt><a name="PathSet-pop"><strong>pop</strong></a>(self)</dt><dd><tt>Return the popped value. Raise KeyError if empty.</tt></dd></dl> 92 93<dl><dt><a name="PathSet-remove"><strong>remove</strong></a>(self, value)</dt><dd><tt>Remove an element. If not a member, raise a KeyError.</tt></dd></dl> 94 95<hr> 96Methods inherited from <a href="_abcoll.html#Set">_abcoll.Set</a>:<br> 97<dl><dt><a name="PathSet-__and__"><strong>__and__</strong></a>(self, other)</dt></dl> 98 99<dl><dt><a name="PathSet-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl> 100 101<dl><dt><a name="PathSet-__ge__"><strong>__ge__</strong></a>(self, other)</dt></dl> 102 103<dl><dt><a name="PathSet-__gt__"><strong>__gt__</strong></a>(self, other)</dt></dl> 104 105<dl><dt><a name="PathSet-__le__"><strong>__le__</strong></a>(self, other)</dt></dl> 106 107<dl><dt><a name="PathSet-__lt__"><strong>__lt__</strong></a>(self, other)</dt></dl> 108 109<dl><dt><a name="PathSet-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl> 110 111<dl><dt><a name="PathSet-__or__"><strong>__or__</strong></a>(self, other)</dt></dl> 112 113<dl><dt><a name="PathSet-__sub__"><strong>__sub__</strong></a>(self, other)</dt></dl> 114 115<dl><dt><a name="PathSet-__xor__"><strong>__xor__</strong></a>(self, other)</dt></dl> 116 117<dl><dt><a name="PathSet-isdisjoint"><strong>isdisjoint</strong></a>(self, other)</dt><dd><tt>Return True if two sets have a null intersection.</tt></dd></dl> 118 119<hr> 120Data and other attributes inherited from <a href="_abcoll.html#Set">_abcoll.Set</a>:<br> 121<dl><dt><strong>__hash__</strong> = None</dl> 122 123<hr> 124Class methods inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 125<dl><dt><a name="PathSet-__subclasshook__"><strong>__subclasshook__</strong></a>(cls, C)<font color="#909090"><font face="helvetica, arial"> from <a href="abc.html#ABCMeta">abc.ABCMeta</a></font></font></dt></dl> 126 127<hr> 128Data descriptors inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 129<dl><dt><strong>__dict__</strong></dt> 130<dd><tt>dictionary for instance variables (if defined)</tt></dd> 131</dl> 132<dl><dt><strong>__weakref__</strong></dt> 133<dd><tt>list of weak references to the object (if defined)</tt></dd> 134</dl> 135<hr> 136Data and other attributes inherited from <a href="_abcoll.html#Sized">_abcoll.Sized</a>:<br> 137<dl><dt><strong>__metaclass__</strong> = <class 'abc.ABCMeta'><dd><tt>Metaclass for defining Abstract Base Classes (ABCs).<br> 138 <br> 139Use this metaclass to create an ABC. An ABC can be subclassed<br> 140directly, and then acts as a mix-in class. You can also register<br> 141unrelated concrete classes (even built-in classes) and unrelated<br> 142ABCs as 'virtual subclasses' -- these and their descendants will<br> 143be considered subclasses of the registering ABC by the built-in<br> 144issubclass() function, but the registering ABC won't show up in<br> 145their MRO (Method Resolution Order) nor will method<br> 146implementations defined by the registering ABC be callable (not<br> 147even via super()).</tt></dl> 148 149</td></tr></table></td></tr></table> 150</body></html>