Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 6d5d09a

Browse files
committed
closes savon-noir#74
1 parent f1922c2 commit 6d5d09a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

libnmap/objects/cpe.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ class CPE(object):
1111
"""
1212
def __init__(self, cpestring):
1313
self._cpestring = cpestring
14-
self.cpedict = {}
15-
1614
zk = ['cpe', 'part', 'vendor', 'product', 'version',
1715
'update', 'edition', 'language']
1816
self._cpedict = dict((k, '') for k in zk)
@@ -26,6 +24,13 @@ def cpestring(self):
2624
"""
2725
return self._cpestring
2826

27+
@property
28+
def cpedict(self):
29+
"""
30+
Accessor for _cpedict
31+
"""
32+
return self._cpedict
33+
2934
def __repr__(self):
3035
return self._cpestring
3136

0 commit comments

Comments
 (0)