Added static method for getDeviceReadableNames

Signed-off-by: Domenico Iezzi <domenico.iezzi.201@gmail.com>
This commit is contained in:
Domenico Iezzi 2017-10-10 19:23:58 +02:00
parent 2a5be42203
commit 11de82f91a
2 changed files with 5 additions and 2 deletions

View File

@ -36,8 +36,7 @@ def getDevicesCodenames():
def getDevicesReadableNames():
"""Returns a list of tuples (codename, userReadableName)
for each device"""
"""Returns codename and readable name for each device"""
sections = getDevicesCodenames()
output = []
for s in sections:

View File

@ -498,3 +498,7 @@ class GooglePlayAPI(object):
@staticmethod
def getDevicesCodenames():
return config.getDevicesCodenames()
@staticmethod
def getDevicesReadableNames():
return config.getDevicesReadableNames()