aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2017-07-18 16:49:59 +0300
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2018-01-10 14:04:17 +0900
commitdddbf525da1660b115d0b79f8209355fed7f5411 (patch)
tree7765314551fb2ef8bd874b5f57a6105b4ca3b454
parenta5f0ea6979231dad97bfe357fdc9eb1cbaa2b511 (diff)
utils: Fix documentation. 3+3=6 digits equals 3 bytes, not 6
-rw-r--r--pySim/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/utils.py b/pySim/utils.py
index 8463581..43d52dd 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -77,7 +77,7 @@ def enc_iccid(iccid):
return swap_nibbles(rpad(iccid, 20))
def enc_plmn(mcc, mnc):
- """Converts integer MCC/MNC into 6 bytes for EF"""
+ """Converts integer MCC/MNC into 3 bytes for EF"""
return swap_nibbles(lpad('%d' % mcc, 3) + lpad('%d' % mnc, 3))
def dec_spn(ef):