{"action":"created","comment":{"url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/comments/35322644","id":35322644,"diff_hunk":"@@ -299,9 +410,40 @@ def _detect_timezone_php():\n   if len(matches) > 1:\n     warnings.warn(\"We detected multiple matches for the timezone, choosing \"\n                   \"the first %s. (Matches where %s)\" % (matches[0], matches))\n+  if matches:\n     return pytz.timezone(matches[0])\n \n \n+class _default_tzinfos(object):","path":"datetime_tz/__init__.py","position":189,"original_position":189,"commit_id":"27e8bbaee4de7858a9b1a2d3ca08c6412006c710","original_commit_id":"27e8bbaee4de7858a9b1a2d3ca08c6412006c710","user":{"login":"dave42","id":694897,"avatar_url":"https://avatars.githubusercontent.com/u/694897?v=3","gravatar_id":"","url":"https://api.github.com/users/dave42","html_url":"https://github.com/dave42","followers_url":"https://api.github.com/users/dave42/followers","following_url":"https://api.github.com/users/dave42/following{/other_user}","gists_url":"https://api.github.com/users/dave42/gists{/gist_id}","starred_url":"https://api.github.com/users/dave42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave42/subscriptions","organizations_url":"https://api.github.com/users/dave42/orgs","repos_url":"https://api.github.com/users/dave42/repos","events_url":"https://api.github.com/users/dave42/events{/privacy}","received_events_url":"https://api.github.com/users/dave42/received_events","type":"User","site_admin":false},"body":"No - it's used as in the tests.  If you want to use dateutil.parse with timezone support, but want it to return pytz timezones instead of regular Python tzinfos, you pass in this object as the 'tzinfos' argument.","created_at":"2015-07-23T13:50:31Z","updated_at":"2015-07-23T13:50:31Z","html_url":"https://github.com/mithro/python-datetime-tz/pull/16#discussion_r35322644","pull_request_url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/comments/35322644"},"html":{"href":"https://github.com/mithro/python-datetime-tz/pull/16#discussion_r35322644"},"pull_request":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16","id":40541161,"html_url":"https://github.com/mithro/python-datetime-tz/pull/16","diff_url":"https://github.com/mithro/python-datetime-tz/pull/16.diff","patch_url":"https://github.com/mithro/python-datetime-tz/pull/16.patch","issue_url":"https://api.github.com/repos/mithro/python-datetime-tz/issues/16","number":16,"state":"open","locked":false,"title":"Add support for Windows and datetime_tz subclassing","user":{"login":"dave42","id":694897,"avatar_url":"https://avatars.githubusercontent.com/u/694897?v=3","gravatar_id":"","url":"https://api.github.com/users/dave42","html_url":"https://github.com/dave42","followers_url":"https://api.github.com/users/dave42/followers","following_url":"https://api.github.com/users/dave42/following{/other_user}","gists_url":"https://api.github.com/users/dave42/gists{/gist_id}","starred_url":"https://api.github.com/users/dave42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave42/subscriptions","organizations_url":"https://api.github.com/users/dave42/orgs","repos_url":"https://api.github.com/users/dave42/repos","events_url":"https://api.github.com/users/dave42/events{/privacy}","received_events_url":"https://api.github.com/users/dave42/received_events","type":"User","site_admin":false},"body":"Our company made a fork of datetime_tz back in 2010, when we added support for windows using win32timezone - which is part of pywin32 - if it is installed.\r\n\r\nUnfortunately, we did not immediately attempt to get those changes merged in upstream, and so our version has diverged a little since then, with various minor enhancements.\r\n\r\nWe realise that this does make for a tricky pull request to handle! Sorry about that... Please let me know if there is anything we can do to make it easier to work with!\r\n","created_at":"2015-07-22T08:28:55Z","updated_at":"2015-07-23T13:50:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db028c7b5f2eb2300ddeea12b83b4ae151e6d50c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16/commits","review_comments_url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16/comments","review_comment_url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mithro/python-datetime-tz/issues/16/comments","statuses_url":"https://api.github.com/repos/mithro/python-datetime-tz/statuses/27e8bbaee4de7858a9b1a2d3ca08c6412006c710","head":{"label":"dave42:merge_with_upstream","ref":"merge_with_upstream","sha":"27e8bbaee4de7858a9b1a2d3ca08c6412006c710","user":{"login":"dave42","id":694897,"avatar_url":"https://avatars.githubusercontent.com/u/694897?v=3","gravatar_id":"","url":"https://api.github.com/users/dave42","html_url":"https://github.com/dave42","followers_url":"https://api.github.com/users/dave42/followers","following_url":"https://api.github.com/users/dave42/following{/other_user}","gists_url":"https://api.github.com/users/dave42/gists{/gist_id}","starred_url":"https://api.github.com/users/dave42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave42/subscriptions","organizations_url":"https://api.github.com/users/dave42/orgs","repos_url":"https://api.github.com/users/dave42/repos","events_url":"https://api.github.com/users/dave42/events{/privacy}","received_events_url":"https://api.github.com/users/dave42/received_events","type":"User","site_admin":false},"repo":{"id":27396567,"name":"python-datetime-tz","full_name":"dave42/python-datetime-tz","owner":{"login":"dave42","id":694897,"avatar_url":"https://avatars.githubusercontent.com/u/694897?v=3","gravatar_id":"","url":"https://api.github.com/users/dave42","html_url":"https://github.com/dave42","followers_url":"https://api.github.com/users/dave42/followers","following_url":"https://api.github.com/users/dave42/following{/other_user}","gists_url":"https://api.github.com/users/dave42/gists{/gist_id}","starred_url":"https://api.github.com/users/dave42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave42/subscriptions","organizations_url":"https://api.github.com/users/dave42/orgs","repos_url":"https://api.github.com/users/dave42/repos","events_url":"https://api.github.com/users/dave42/events{/privacy}","received_events_url":"https://api.github.com/users/dave42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dave42/python-datetime-tz","description":"Drop-in replacement for Python datetime which deeply cares about timezones.","fork":true,"url":"https://api.github.com/repos/dave42/python-datetime-tz","forks_url":"https://api.github.com/repos/dave42/python-datetime-tz/forks","keys_url":"https://api.github.com/repos/dave42/python-datetime-tz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dave42/python-datetime-tz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dave42/python-datetime-tz/teams","hooks_url":"https://api.github.com/repos/dave42/python-datetime-tz/hooks","issue_events_url":"https://api.github.com/repos/dave42/python-datetime-tz/issues/events{/number}","events_url":"https://api.github.com/repos/dave42/python-datetime-tz/events","assignees_url":"https://api.github.com/repos/dave42/python-datetime-tz/assignees{/user}","branches_url":"https://api.github.com/repos/dave42/python-datetime-tz/branches{/branch}","tags_url":"https://api.github.com/repos/dave42/python-datetime-tz/tags","blobs_url":"https://api.github.com/repos/dave42/python-datetime-tz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dave42/python-datetime-tz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dave42/python-datetime-tz/git/refs{/sha}","trees_url":"https://api.github.com/repos/dave42/python-datetime-tz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dave42/python-datetime-tz/statuses/{sha}","languages_url":"https://api.github.com/repos/dave42/python-datetime-tz/languages","stargazers_url":"https://api.github.com/repos/dave42/python-datetime-tz/stargazers","contributors_url":"https://api.github.com/repos/dave42/python-datetime-tz/contributors","subscribers_url":"https://api.github.com/repos/dave42/python-datetime-tz/subscribers","subscription_url":"https://api.github.com/repos/dave42/python-datetime-tz/subscription","commits_url":"https://api.github.com/repos/dave42/python-datetime-tz/commits{/sha}","git_commits_url":"https://api.github.com/repos/dave42/python-datetime-tz/git/commits{/sha}","comments_url":"https://api.github.com/repos/dave42/python-datetime-tz/comments{/number}","issue_comment_url":"https://api.github.com/repos/dave42/python-datetime-tz/issues/comments{/number}","contents_url":"https://api.github.com/repos/dave42/python-datetime-tz/contents/{+path}","compare_url":"https://api.github.com/repos/dave42/python-datetime-tz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dave42/python-datetime-tz/merges","archive_url":"https://api.github.com/repos/dave42/python-datetime-tz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dave42/python-datetime-tz/downloads","issues_url":"https://api.github.com/repos/dave42/python-datetime-tz/issues{/number}","pulls_url":"https://api.github.com/repos/dave42/python-datetime-tz/pulls{/number}","milestones_url":"https://api.github.com/repos/dave42/python-datetime-tz/milestones{/number}","notifications_url":"https://api.github.com/repos/dave42/python-datetime-tz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dave42/python-datetime-tz/labels{/name}","releases_url":"https://api.github.com/repos/dave42/python-datetime-tz/releases{/id}","created_at":"2014-12-01T19:48:18Z","updated_at":"2014-12-01T19:48:18Z","pushed_at":"2015-07-22T11:24:17Z","git_url":"git://github.com/dave42/python-datetime-tz.git","ssh_url":"git@github.com:dave42/python-datetime-tz.git","clone_url":"https://github.com/dave42/python-datetime-tz.git","svn_url":"https://github.com/dave42/python-datetime-tz","homepage":"","size":219,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mithro:master","ref":"master","sha":"a66661c67520f82d18614bc4d8a150c015aeedec","user":{"login":"mithro","id":21212,"avatar_url":"https://avatars.githubusercontent.com/u/21212?v=3","gravatar_id":"","url":"https://api.github.com/users/mithro","html_url":"https://github.com/mithro","followers_url":"https://api.github.com/users/mithro/followers","following_url":"https://api.github.com/users/mithro/following{/other_user}","gists_url":"https://api.github.com/users/mithro/gists{/gist_id}","starred_url":"https://api.github.com/users/mithro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithro/subscriptions","organizations_url":"https://api.github.com/users/mithro/orgs","repos_url":"https://api.github.com/users/mithro/repos","events_url":"https://api.github.com/users/mithro/events{/privacy}","received_events_url":"https://api.github.com/users/mithro/received_events","type":"User","site_admin":false},"repo":{"id":1850395,"name":"python-datetime-tz","full_name":"mithro/python-datetime-tz","owner":{"login":"mithro","id":21212,"avatar_url":"https://avatars.githubusercontent.com/u/21212?v=3","gravatar_id":"","url":"https://api.github.com/users/mithro","html_url":"https://github.com/mithro","followers_url":"https://api.github.com/users/mithro/followers","following_url":"https://api.github.com/users/mithro/following{/other_user}","gists_url":"https://api.github.com/users/mithro/gists{/gist_id}","starred_url":"https://api.github.com/users/mithro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mithro/subscriptions","organizations_url":"https://api.github.com/users/mithro/orgs","repos_url":"https://api.github.com/users/mithro/repos","events_url":"https://api.github.com/users/mithro/events{/privacy}","received_events_url":"https://api.github.com/users/mithro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mithro/python-datetime-tz","description":"Drop-in replacement for Python datetime which deeply cares about timezones.","fork":false,"url":"https://api.github.com/repos/mithro/python-datetime-tz","forks_url":"https://api.github.com/repos/mithro/python-datetime-tz/forks","keys_url":"https://api.github.com/repos/mithro/python-datetime-tz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mithro/python-datetime-tz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mithro/python-datetime-tz/teams","hooks_url":"https://api.github.com/repos/mithro/python-datetime-tz/hooks","issue_events_url":"https://api.github.com/repos/mithro/python-datetime-tz/issues/events{/number}","events_url":"https://api.github.com/repos/mithro/python-datetime-tz/events","assignees_url":"https://api.github.com/repos/mithro/python-datetime-tz/assignees{/user}","branches_url":"https://api.github.com/repos/mithro/python-datetime-tz/branches{/branch}","tags_url":"https://api.github.com/repos/mithro/python-datetime-tz/tags","blobs_url":"https://api.github.com/repos/mithro/python-datetime-tz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mithro/python-datetime-tz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mithro/python-datetime-tz/git/refs{/sha}","trees_url":"https://api.github.com/repos/mithro/python-datetime-tz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mithro/python-datetime-tz/statuses/{sha}","languages_url":"https://api.github.com/repos/mithro/python-datetime-tz/languages","stargazers_url":"https://api.github.com/repos/mithro/python-datetime-tz/stargazers","contributors_url":"https://api.github.com/repos/mithro/python-datetime-tz/contributors","subscribers_url":"https://api.github.com/repos/mithro/python-datetime-tz/subscribers","subscription_url":"https://api.github.com/repos/mithro/python-datetime-tz/subscription","commits_url":"https://api.github.com/repos/mithro/python-datetime-tz/commits{/sha}","git_commits_url":"https://api.github.com/repos/mithro/python-datetime-tz/git/commits{/sha}","comments_url":"https://api.github.com/repos/mithro/python-datetime-tz/comments{/number}","issue_comment_url":"https://api.github.com/repos/mithro/python-datetime-tz/issues/comments{/number}","contents_url":"https://api.github.com/repos/mithro/python-datetime-tz/contents/{+path}","compare_url":"https://api.github.com/repos/mithro/python-datetime-tz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mithro/python-datetime-tz/merges","archive_url":"https://api.github.com/repos/mithro/python-datetime-tz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mithro/python-datetime-tz/downloads","issues_url":"https://api.github.com/repos/mithro/python-datetime-tz/issues{/number}","pulls_url":"https://api.github.com/repos/mithro/python-datetime-tz/pulls{/number}","milestones_url":"https://api.github.com/repos/mithro/python-datetime-tz/milestones{/number}","notifications_url":"https://api.github.com/repos/mithro/python-datetime-tz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mithro/python-datetime-tz/labels{/name}","releases_url":"https://api.github.com/repos/mithro/python-datetime-tz/releases{/id}","created_at":"2011-06-05T13:58:24Z","updated_at":"2015-06-22T13:45:59Z","pushed_at":"2015-07-22T11:24:18Z","git_url":"git://github.com/mithro/python-datetime-tz.git","ssh_url":"git@github.com:mithro/python-datetime-tz.git","clone_url":"https://github.com/mithro/python-datetime-tz.git","svn_url":"https://github.com/mithro/python-datetime-tz","homepage":"","size":374,"stargazers_count":19,"watchers_count":19,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16"},"html":{"href":"https://github.com/mithro/python-datetime-tz/pull/16"},"issue":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/issues/16"},"comments":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/mithro/python-datetime-tz/statuses/27e8bbaee4de7858a9b1a2d3ca08c6412006c710"}}}}