Skip to content

Commit 286b484

Browse files
author
Sam Wierema
committed
Some things are ints, print them that way in the Lookup example
1 parent fb0a423 commit 286b484

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/lookup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
# Print the object information.
3131
print('\nThe following information was returned as a Lookup object:\n')
3232
print(' href : %s' % lookup.href)
33-
print(' phoneNumber : %s' % lookup.phoneNumber)
33+
print(' phoneNumber : %d' % lookup.phoneNumber)
3434
print(' countryCode : %s' % lookup.countryCode)
35-
print(' countryPrefix : %s' % lookup.countryPrefix)
35+
print(' countryPrefix : %d' % lookup.countryPrefix)
3636
print(' type : %s' % lookup.type)
3737
print(' formats.e164 : %s' % lookup.formats.e164)
3838
print(' formats.international : %s' % lookup.formats.international)
@@ -41,6 +41,7 @@
4141

4242
if lookup.hlr is not None:
4343
print(' hlr.id : %s' % lookup.hlr.id)
44+
print(' hlr.network : %d' % lookup.hlr.network)
4445
print(' hlr.reference : %s' % lookup.hlr.reference)
4546
print(' hlr.status : %s' % lookup.hlr.status)
4647
print(' hlr.createdDatetime : %s' % lookup.hlr.createdDatetime)

examples/lookup_hlr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
print('\nThe following information was returned as a Lookup HLR object:\n')
3232
print(' id : %s' % lookup_hlr.id)
3333
print(' href : %s' % lookup_hlr.href)
34-
print(' msisdn : %s' % lookup_hlr.msisdn)
35-
print(' network : %s' % lookup_hlr.network)
34+
print(' msisdn : %d' % lookup_hlr.msisdn)
35+
print(' network : %d' % lookup_hlr.network)
3636
print(' reference : %s' % lookup_hlr.reference)
3737
print(' status : %s' % lookup_hlr.status)
3838
print(' createdDatetime : %s' % lookup_hlr.createdDatetime)

examples/lookup_hlr_create.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
print('\nThe following information was returned as a Lookup HLR object:\n')
3232
print(' id : %s' % lookup_hlr.id)
3333
print(' href : %s' % lookup_hlr.href)
34-
print(' msisdn : %s' % lookup_hlr.msisdn)
35-
print(' network : %s' % lookup_hlr.network)
34+
print(' msisdn : %d' % lookup_hlr.msisdn)
3635
print(' reference : %s' % lookup_hlr.reference)
3736
print(' status : %s' % lookup_hlr.status)
3837
print(' createdDatetime : %s' % lookup_hlr.createdDatetime)

0 commit comments

Comments
 (0)