| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -258,7 +258,7 @@ def OnKeyEvent(self, browser, eventType, keyCode, modifiers, isSystemKey, | |||
| 258 | 258 | # no bindings in this window, error would be thrown. | |
| 259 | 259 | # Pressing F5 in Developer Tools seem to not refresh | |
| 260 | 260 | # the parent window. | |
| 261 | - if hasattr(browser, "javascriptRebindings"): | ||
| 261 | + if browser.GetUserData("javascriptRebindings"): | ||
| 262 | 262 | browser.GetUserData("javascriptRebindings").Rebind() | |
| 263 | 263 | # This is not required, rebinding will work without refreshing page. | |
| 264 | 264 | browser.ReloadIgnoreCache() | |
@@ -394,7 +394,7 @@ def Test2(self, arg1, arg2, arg3): | |||
| 394 | 394 | arg2 = arg2.encode(encoding="utf-8") | |
| 395 | 395 | print("python.Test2(%s, '%s', '%s') called" % (arg1, arg2, arg3)) | |
| 396 | 396 | # Testing nested return values. | |
| 397 | - return [1,2, [2.1, {'3': 3, '4': [5,6]}], "[unicode: ąś]", | ||
| 397 | + return [1,2, [2.1, {'3': 3, '4': [5,6]}], "[unicode: ąś]", | ||
| 398 | 398 | arg2_original, arg2] | |
| 399 | 399 | ||
| 400 | 400 | def PrintPyConfig(self): | |
@@ -418,7 +418,7 @@ def TestJavascriptCallback(self, jsCallback): | |||
| 418 | 418 | else: | |
| 419 | 419 | # Python 3.2 - there is no "unicode()" in python 3 | |
| 420 | 420 | jsCallback.Call(1, [2,3], ('tuple', 'tuple'), | |
| 421 | - 'unicode string [ąś]', | ||
| 421 | + 'unicode string [ąś]', | ||
| 422 | 422 | 'bytes string [ąś]'.encode('utf-8')) | |
| 423 | 423 | else: | |
| 424 | 424 | raise Exception("python.TestJavascriptCallback() failed: " | |
| Back | FazBrowse Home | New Git URL |
0 commit comments