Merge "Fixing types.MethodType signature for Python 3.5"

This commit is contained in:
Jenkins 2017-06-08 17:03:37 +00:00 committed by Gerrit Code Review
commit ad21f99dfa

View File

@ -12,7 +12,7 @@
import importlib
import json
import types
import six
from selenium.webdriver.common import by
@ -327,7 +327,7 @@ class Navigation(object):
@classmethod
def _create_go_to_method(cls, path, class_name=None):
go_to_method = Navigation.GoToMethodFactory(path, class_name)
inst_method = types.MethodType(go_to_method, None, Navigation)
inst_method = six.create_unbound_method(go_to_method, Navigation)
setattr(Navigation, inst_method.name, inst_method)
@classmethod