s/parseargs/parse_args
This commit is contained in:
parent
fbf74148a6
commit
5bdd1540fe
9 changed files with 11 additions and 11 deletions
|
|
@ -125,7 +125,7 @@ class WetBoobs(ReplApplication):
|
|||
Get current weather for specified city. Use the 'search' command to find
|
||||
its ID.
|
||||
"""
|
||||
city, = self.parseargs(line, 1, 1)
|
||||
city, = self.parse_args(line, 1, 1)
|
||||
_id, backend_name = self.parse_id(city)
|
||||
for backend, current in self.do('get_current', _id, backends=backend_name):
|
||||
if current:
|
||||
|
|
@ -144,7 +144,7 @@ class WetBoobs(ReplApplication):
|
|||
Get forecasts for specified city. Use the 'search' command to find
|
||||
its ID.
|
||||
"""
|
||||
city, = self.parseargs(line, 1, 1)
|
||||
city, = self.parse_args(line, 1, 1)
|
||||
_id, backend_name = self.parse_id(city)
|
||||
for backend, forecast in self.do('iter_forecast', _id, backends=backend_name):
|
||||
self.format(forecast)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue