Skip to content

Commit 0c4fded

Browse files
authored
Merge pull request savon-noir#92 from d4t4king/master
Fixed typos in previous PR (savon-noir#90)
2 parents 8b46542 + 505f9d3 commit 0c4fded

1 file changed

Lines changed: 35 additions & 35 deletions

File tree

libnmap/objects/report.py

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ def started(self):
8383
pass
8484
return rval
8585

86-
@property
87-
def startedstr(self):
88-
"""
89-
Accessor returning a human readable string of when the
90-
scan was started
91-
92-
:return: string
93-
"""
94-
rval = ''
95-
try:
96-
rval = self.['_nmaprun']['startstr']
86+
@property
87+
def startedstr(self):
88+
"""
89+
Accessor returning a human readable string of when the
90+
scan was started
91+
92+
:return: string
93+
"""
94+
rval = ''
95+
try:
96+
rval = self._nmaprun['startstr']
9797
except(KeyError, TypeError, ValueError):
9898
pass
9999
return rval
@@ -117,15 +117,15 @@ def version(self):
117117
"""
118118
return self._nmaprun['version']
119119

120-
@property
121-
def xmlversion(self):
122-
"""
123-
Accessor returning the XML output
124-
version of the nmap report.
125-
126-
:return: string
127-
"""
128-
return self._nmaprun['xmloutputversion']
120+
@property
121+
def xmlversion(self):
122+
"""
123+
Accessor returning the XML output
124+
version of the nmap report.
125+
126+
:return: string
127+
"""
128+
return self._nmaprun['xmloutputversion']
129129

130130
@property
131131
def scan_type(self):
@@ -137,21 +137,21 @@ def scan_type(self):
137137
"""
138138
return self._scaninfo.get('type')
139139

140-
@property
141-
def numservices(self):
142-
"""
143-
Accessor returning the number of services the
144-
scan attempted to enumerate.
145-
146-
:return: integer
147-
"""
148-
rval = -1
149-
try:
150-
s_numsvcs = self._scaninfo.get('numservices')
151-
rval = int(s_numsvcs)
152-
except(KeyError, TypeError, ValueError):
153-
pass
154-
return rval
140+
@property
141+
def numservices(self):
142+
"""
143+
Accessor returning the number of services the
144+
scan attempted to enumerate.
145+
146+
:return: integer
147+
"""
148+
rval = -1
149+
try:
150+
s_numsvcs = self._scaninfo.get('numservices')
151+
rval = int(s_numsvcs)
152+
except(KeyError, TypeError, ValueError):
153+
pass
154+
return rval
155155

156156
@property
157157
def hosts(self):

0 commit comments

Comments
 (0)