mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-30 17:01:46 +03:00
SMS: UserDataHeader's __str__ is also a suitable __repr__
Change-Id: I59cc04e8700a374b440f192080b5c5baad60a235
This commit is contained in:
@@ -36,8 +36,8 @@ class UserDataHeader:
|
|||||||
def __init__(self, ies=[]):
|
def __init__(self, ies=[]):
|
||||||
self.ies = ies
|
self.ies = ies
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return 'UDH(%s)' % self.ies
|
return 'UDH(%r)' % self.ies
|
||||||
|
|
||||||
def has_ie(self, iei:int) -> bool:
|
def has_ie(self, iei:int) -> bool:
|
||||||
for ie in self.ies:
|
for ie in self.ies:
|
||||||
|
|||||||
Reference in New Issue
Block a user