{"action":"created","comment":{"url":"https://api.github.com/repos/enthought/traitsui/pulls/comments/38755709","id":38755709,"diff_hunk":"@@ -184,9 +187,13 @@ def _get_toolkit_editor(cls, class_name):\n                 factory_class = editor_factory_classes[index]\n                 editor_file_name = os.path.basename(\n                                 sys.modules[factory_class.__module__].__file__)\n-                return toolkit_object(':'.join([editor_file_name.split('.')[0],\n-                                             class_name]), True)\n+                object_ref = ':'.join([editor_file_name.split('.')[0],\n+                                       class_name])\n+                return toolkit_object(object_ref, True)\n             except Exception as e:\n+                if TRAITS_DEBUG:\n+                    msg = \"Can't import toolkit_object '{}': {}\"\n+                    print(msg.format(object_ref, e))","path":"traitsui/editor_factory.py","position":31,"original_position":31,"commit_id":"bd996caceb5027161e22ba0ca655c131bf1c9bfb","original_commit_id":"bd996caceb5027161e22ba0ca655c131bf1c9bfb","user":{"login":"rkern","id":46135,"avatar_url":"https://avatars.githubusercontent.com/u/46135?v=3","gravatar_id":"","url":"https://api.github.com/users/rkern","html_url":"https://github.com/rkern","followers_url":"https://api.github.com/users/rkern/followers","following_url":"https://api.github.com/users/rkern/following{/other_user}","gists_url":"https://api.github.com/users/rkern/gists{/gist_id}","starred_url":"https://api.github.com/users/rkern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkern/subscriptions","organizations_url":"https://api.github.com/users/rkern/orgs","repos_url":"https://api.github.com/users/rkern/repos","events_url":"https://api.github.com/users/rkern/events{/privacy}","received_events_url":"https://api.github.com/users/rkern/received_events","type":"User","site_admin":false},"body":"Please use `raise_to_debug()` in all of these cases.","created_at":"2015-09-04T14:18:40Z","updated_at":"2015-09-04T14:18:40Z","html_url":"https://github.com/enthought/traitsui/pull/234#discussion_r38755709","pull_request_url":"https://api.github.com/repos/enthought/traitsui/pulls/234","_links":{"self":{"href":"https://api.github.com/repos/enthought/traitsui/pulls/comments/38755709"},"html":{"href":"https://github.com/enthought/traitsui/pull/234#discussion_r38755709"},"pull_request":{"href":"https://api.github.com/repos/enthought/traitsui/pulls/234"}}},"pull_request":{"url":"https://api.github.com/repos/enthought/traitsui/pulls/234","id":43010521,"html_url":"https://github.com/enthought/traitsui/pull/234","diff_url":"https://github.com/enthought/traitsui/pull/234.diff","patch_url":"https://github.com/enthought/traitsui/pull/234.patch","issue_url":"https://api.github.com/repos/enthought/traitsui/issues/234","number":234,"state":"open","locked":false,"title":"Various Python 3 Fixes","user":{"login":"corranwebster","id":600761,"avatar_url":"https://avatars.githubusercontent.com/u/600761?v=3","gravatar_id":"","url":"https://api.github.com/users/corranwebster","html_url":"https://github.com/corranwebster","followers_url":"https://api.github.com/users/corranwebster/followers","following_url":"https://api.github.com/users/corranwebster/following{/other_user}","gists_url":"https://api.github.com/users/corranwebster/gists{/gist_id}","starred_url":"https://api.github.com/users/corranwebster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corranwebster/subscriptions","organizations_url":"https://api.github.com/users/corranwebster/orgs","repos_url":"https://api.github.com/users/corranwebster/repos","events_url":"https://api.github.com/users/corranwebster/events{/privacy}","received_events_url":"https://api.github.com/users/corranwebster/received_events","type":"User","site_admin":false},"body":"Fixes which have come up in actual testing of examples.","created_at":"2015-08-21T07:21:20Z","updated_at":"2015-09-04T14:18:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1d52d27fb0cd2939db47da980e13968ed6d5c00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/enthought/traitsui/pulls/234/commits","review_comments_url":"https://api.github.com/repos/enthought/traitsui/pulls/234/comments","review_comment_url":"https://api.github.com/repos/enthought/traitsui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/enthought/traitsui/issues/234/comments","statuses_url":"https://api.github.com/repos/enthought/traitsui/statuses/bd996caceb5027161e22ba0ca655c131bf1c9bfb","head":{"label":"enthought:fix/python3-various-fixes","ref":"fix/python3-various-fixes","sha":"bd996caceb5027161e22ba0ca655c131bf1c9bfb","user":{"login":"enthought","id":539651,"avatar_url":"https://avatars.githubusercontent.com/u/539651?v=3","gravatar_id":"","url":"https://api.github.com/users/enthought","html_url":"https://github.com/enthought","followers_url":"https://api.github.com/users/enthought/followers","following_url":"https://api.github.com/users/enthought/following{/other_user}","gists_url":"https://api.github.com/users/enthought/gists{/gist_id}","starred_url":"https://api.github.com/users/enthought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enthought/subscriptions","organizations_url":"https://api.github.com/users/enthought/orgs","repos_url":"https://api.github.com/users/enthought/repos","events_url":"https://api.github.com/users/enthought/events{/privacy}","received_events_url":"https://api.github.com/users/enthought/received_events","type":"Organization","site_admin":false},"repo":{"id":1632980,"name":"traitsui","full_name":"enthought/traitsui","owner":{"login":"enthought","id":539651,"avatar_url":"https://avatars.githubusercontent.com/u/539651?v=3","gravatar_id":"","url":"https://api.github.com/users/enthought","html_url":"https://github.com/enthought","followers_url":"https://api.github.com/users/enthought/followers","following_url":"https://api.github.com/users/enthought/following{/other_user}","gists_url":"https://api.github.com/users/enthought/gists{/gist_id}","starred_url":"https://api.github.com/users/enthought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enthought/subscriptions","organizations_url":"https://api.github.com/users/enthought/orgs","repos_url":"https://api.github.com/users/enthought/repos","events_url":"https://api.github.com/users/enthought/events{/privacy}","received_events_url":"https://api.github.com/users/enthought/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enthought/traitsui","description":"","fork":false,"url":"https://api.github.com/repos/enthought/traitsui","forks_url":"https://api.github.com/repos/enthought/traitsui/forks","keys_url":"https://api.github.com/repos/enthought/traitsui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enthought/traitsui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enthought/traitsui/teams","hooks_url":"https://api.github.com/repos/enthought/traitsui/hooks","issue_events_url":"https://api.github.com/repos/enthought/traitsui/issues/events{/number}","events_url":"https://api.github.com/repos/enthought/traitsui/events","assignees_url":"https://api.github.com/repos/enthought/traitsui/assignees{/user}","branches_url":"https://api.github.com/repos/enthought/traitsui/branches{/branch}","tags_url":"https://api.github.com/repos/enthought/traitsui/tags","blobs_url":"https://api.github.com/repos/enthought/traitsui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enthought/traitsui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enthought/traitsui/git/refs{/sha}","trees_url":"https://api.github.com/repos/enthought/traitsui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enthought/traitsui/statuses/{sha}","languages_url":"https://api.github.com/repos/enthought/traitsui/languages","stargazers_url":"https://api.github.com/repos/enthought/traitsui/stargazers","contributors_url":"https://api.github.com/repos/enthought/traitsui/contributors","subscribers_url":"https://api.github.com/repos/enthought/traitsui/subscribers","subscription_url":"https://api.github.com/repos/enthought/traitsui/subscription","commits_url":"https://api.github.com/repos/enthought/traitsui/commits{/sha}","git_commits_url":"https://api.github.com/repos/enthought/traitsui/git/commits{/sha}","comments_url":"https://api.github.com/repos/enthought/traitsui/comments{/number}","issue_comment_url":"https://api.github.com/repos/enthought/traitsui/issues/comments{/number}","contents_url":"https://api.github.com/repos/enthought/traitsui/contents/{+path}","compare_url":"https://api.github.com/repos/enthought/traitsui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enthought/traitsui/merges","archive_url":"https://api.github.com/repos/enthought/traitsui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enthought/traitsui/downloads","issues_url":"https://api.github.com/repos/enthought/traitsui/issues{/number}","pulls_url":"https://api.github.com/repos/enthought/traitsui/pulls{/number}","milestones_url":"https://api.github.com/repos/enthought/traitsui/milestones{/number}","notifications_url":"https://api.github.com/repos/enthought/traitsui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enthought/traitsui/labels{/name}","releases_url":"https://api.github.com/repos/enthought/traitsui/releases{/id}","created_at":"2011-04-18T22:32:33Z","updated_at":"2015-08-21T17:48:42Z","pushed_at":"2015-09-04T14:00:58Z","git_url":"git://github.com/enthought/traitsui.git","ssh_url":"git@github.com:enthought/traitsui.git","clone_url":"https://github.com/enthought/traitsui.git","svn_url":"https://github.com/enthought/traitsui","homepage":"","size":46293,"stargazers_count":60,"watchers_count":60,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":46,"mirror_url":null,"open_issues_count":65,"forks":46,"open_issues":65,"watchers":60,"default_branch":"master"}},"base":{"label":"enthought:master","ref":"master","sha":"423fa0f2eb5d9eca41920bb7a0d5a17fe3b19d57","user":{"login":"enthought","id":539651,"avatar_url":"https://avatars.githubusercontent.com/u/539651?v=3","gravatar_id":"","url":"https://api.github.com/users/enthought","html_url":"https://github.com/enthought","followers_url":"https://api.github.com/users/enthought/followers","following_url":"https://api.github.com/users/enthought/following{/other_user}","gists_url":"https://api.github.com/users/enthought/gists{/gist_id}","starred_url":"https://api.github.com/users/enthought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enthought/subscriptions","organizations_url":"https://api.github.com/users/enthought/orgs","repos_url":"https://api.github.com/users/enthought/repos","events_url":"https://api.github.com/users/enthought/events{/privacy}","received_events_url":"https://api.github.com/users/enthought/received_events","type":"Organization","site_admin":false},"repo":{"id":1632980,"name":"traitsui","full_name":"enthought/traitsui","owner":{"login":"enthought","id":539651,"avatar_url":"https://avatars.githubusercontent.com/u/539651?v=3","gravatar_id":"","url":"https://api.github.com/users/enthought","html_url":"https://github.com/enthought","followers_url":"https://api.github.com/users/enthought/followers","following_url":"https://api.github.com/users/enthought/following{/other_user}","gists_url":"https://api.github.com/users/enthought/gists{/gist_id}","starred_url":"https://api.github.com/users/enthought/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enthought/subscriptions","organizations_url":"https://api.github.com/users/enthought/orgs","repos_url":"https://api.github.com/users/enthought/repos","events_url":"https://api.github.com/users/enthought/events{/privacy}","received_events_url":"https://api.github.com/users/enthought/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/enthought/traitsui","description":"","fork":false,"url":"https://api.github.com/repos/enthought/traitsui","forks_url":"https://api.github.com/repos/enthought/traitsui/forks","keys_url":"https://api.github.com/repos/enthought/traitsui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/enthought/traitsui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/enthought/traitsui/teams","hooks_url":"https://api.github.com/repos/enthought/traitsui/hooks","issue_events_url":"https://api.github.com/repos/enthought/traitsui/issues/events{/number}","events_url":"https://api.github.com/repos/enthought/traitsui/events","assignees_url":"https://api.github.com/repos/enthought/traitsui/assignees{/user}","branches_url":"https://api.github.com/repos/enthought/traitsui/branches{/branch}","tags_url":"https://api.github.com/repos/enthought/traitsui/tags","blobs_url":"https://api.github.com/repos/enthought/traitsui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/enthought/traitsui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/enthought/traitsui/git/refs{/sha}","trees_url":"https://api.github.com/repos/enthought/traitsui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/enthought/traitsui/statuses/{sha}","languages_url":"https://api.github.com/repos/enthought/traitsui/languages","stargazers_url":"https://api.github.com/repos/enthought/traitsui/stargazers","contributors_url":"https://api.github.com/repos/enthought/traitsui/contributors","subscribers_url":"https://api.github.com/repos/enthought/traitsui/subscribers","subscription_url":"https://api.github.com/repos/enthought/traitsui/subscription","commits_url":"https://api.github.com/repos/enthought/traitsui/commits{/sha}","git_commits_url":"https://api.github.com/repos/enthought/traitsui/git/commits{/sha}","comments_url":"https://api.github.com/repos/enthought/traitsui/comments{/number}","issue_comment_url":"https://api.github.com/repos/enthought/traitsui/issues/comments{/number}","contents_url":"https://api.github.com/repos/enthought/traitsui/contents/{+path}","compare_url":"https://api.github.com/repos/enthought/traitsui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/enthought/traitsui/merges","archive_url":"https://api.github.com/repos/enthought/traitsui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/enthought/traitsui/downloads","issues_url":"https://api.github.com/repos/enthought/traitsui/issues{/number}","pulls_url":"https://api.github.com/repos/enthought/traitsui/pulls{/number}","milestones_url":"https://api.github.com/repos/enthought/traitsui/milestones{/number}","notifications_url":"https://api.github.com/repos/enthought/traitsui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/enthought/traitsui/labels{/name}","releases_url":"https://api.github.com/repos/enthought/traitsui/releases{/id}","created_at":"2011-04-18T22:32:33Z","updated_at":"2015-08-21T17:48:42Z","pushed_at":"2015-09-04T14:00:58Z","git_url":"git://github.com/enthought/traitsui.git","ssh_url":"git@github.com:enthought/traitsui.git","clone_url":"https://github.com/enthought/traitsui.git","svn_url":"https://github.com/enthought/traitsui","homepage":"","size":46293,"stargazers_count":60,"watchers_count":60,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":46,"mirror_url":null,"open_issues_count":65,"forks":46,"open_issues":65,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/enthought/traitsui/pulls/234"},"html":{"href":"https://github.com/enthought/traitsui/pull/234"},"issue":{"href":"https://api.github.com/repos/enthought/traitsui/issues/234"},"comments":{"href":"https://api.github.com/repos/enthought/traitsui/issues/234/comments"},"review_comments":{"href":"https://api.github.com/repos/enthought/traitsui/pulls/234/comments"},"review_comment":{"href":"https://api.github.com/repos/enthought/traitsui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/enthought/traitsui/pulls/234/commits"},"statuses":{"href":"https://api.github.com/repos/enthought/traitsui/statuses/bd996caceb5027161e22ba0ca655c131bf1c9bfb"}}}}