MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __str__

Method __str__

pager_lib/smb/smb_structs.py:93–97  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 self.is_ntstatus = True
92
93 def __str__(self):
94 if self.is_ntstatus:
95 return 'NTSTATUS=0x%08X' % self.internal_value
96 else:
97 return 'ErrorClass=0x%02X ErrorCode=0x%04X' % ( self.internal_value >> 24, self.internal_value & 0xFFFF )
98
99 @property
100 def hasError(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected