Skip to content

Commit

Permalink
Remove redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: AutomatedTester <dburns@mozilla.com>
  • Loading branch information
bayandin authored and AutomatedTester committed Mar 25, 2014
1 parent d7cfca4 commit fceda53
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,6 @@ def execute_script(self, script, *args):
:Usage:
driver.execute_script('document.title')
"""
if len(args) == 1:
converted_args = args[0]
else:
converted_args = list(args)
converted_args = list(args)
return self.execute(Command.EXECUTE_SCRIPT,
{'script': script, 'args':converted_args})['value']
Expand All @@ -408,10 +404,6 @@ def execute_async_script(self, script, *args):
:Usage:
driver.execute_async_script('document.title')
"""
if len(args) == 1:
converted_args = args[0]
else:
converted_args = list(args)
converted_args = list(args)
return self.execute(Command.EXECUTE_ASYNC_SCRIPT,
{'script': script, 'args':converted_args})['value']
Expand Down

0 comments on commit fceda53

Please sign in to comment.