@@ -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