Skip to content

Commit f72afa8

Browse files
committed
Add VimballFile.has_pkg()
1 parent 3a71042 commit f72afa8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vimballfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ def getinfo(self, name):
5757
'There is no item named %r in the archive' % name)
5858

5959
return info
60+
61+
def has_pkg(self, name):
62+
return self.NameToInfo.has_key(name)
63+
6064
def read(self, name, *default):
6165
"""Return file bytes (as a string) for name."""
6266
if self.NameToInfo.has_key(name):

0 commit comments

Comments
 (0)