Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
stripping ws
Browse files Browse the repository at this point in the history
  • Loading branch information
p1-bmu committed Nov 8, 2023
1 parent 88ec5ac commit 6dd93f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycrate_mobile/TS23038.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def encode_7b(txt, off=0):

def decode_7b(buf, off=0):
"""translates the GSM 7 bit characters buffer `buf' to an unicode string
Enables the string to be decoded to start at a non-null offset `off' as it is
Enables the string to be decoded to start at a non-null offset `off' as it is
the case with fill bits after certain SMS User-Data-Headers
Args:
Expand All @@ -592,7 +592,7 @@ def decode_7b(buf, off=0):
Returns:
decoded text string (utf8 str)
"""
# WNG: in case of 7 remaining bits at the end of the buffer, we will have an @
# WNG: in case of 7 remaining bits at the end of the buffer, we will have an @
# at the end of the returned string
# we would need the chars_num parameter passed as function arg to fix this
#
Expand Down

0 comments on commit 6dd93f9

Please sign in to comment.