forked from BrowserSecurity/ExtensionCrawler
Added documentation for get_tarinfo().
This commit is contained in:
parent
6167c5f88a
commit
c04752c9e9
|
@ -41,9 +41,10 @@ def helpmsg():
|
|||
print(" -a=<DIR> archive directory")
|
||||
|
||||
|
||||
def get_tarinfo(members, last):
|
||||
def get_tarinfo(members, name):
|
||||
"""Select tarinfo object with a specified path/name."""
|
||||
for tarinfo in members:
|
||||
if tarinfo.name == last:
|
||||
if tarinfo.name == name:
|
||||
yield tarinfo
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue