{"action":"created","comment":{"url":"https://api.github.com/repos/PyAr/fades/pulls/comments/51493443","id":51493443,"diff_hunk":"@@ -0,0 +1,94 @@\n+# Copyright 2014-2016 Facundo Batista, Nicolás Demarchi\n+#\n+# This program is free software: you can redistribute it and/or modify it\n+# under the terms of the GNU General Public License version 3, as published\n+# by the Free Software Foundation.\n+#\n+# This program is distributed in the hope that it will be useful, but\n+# WITHOUT ANY WARRANTY; without even the implied warranties of\n+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR\n+# PURPOSE.  See the GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License along\n+# with this program.  If not, see <http://www.gnu.org/licenses/>.\n+#\n+# For further info, check  https://github.com/PyAr/fades\n+\n+\"\"\"Parse fades options from confir files.\"\"\"\n+\n+import logging\n+from configparser import ConfigParser\n+\n+logger = logging.getLogger(__name__)\n+\n+CONFIG_FILES = (\"/etc/fades.ini\", \"~/.fades.ini\", \".fades\")\n+\n+MERGEABLE_CONFIGS = (\"dependency\", \"pip_options\", \"virtualenv-options\")\n+\n+\n+def get_parsers(config_files=CONFIG_FILES):\n+    \"\"\"\n+    Search for config files return a ConfigParser for each one.\n+\n+    Return a Configparser with all files merged in the first position and one\n+    Configparser for each file ordered by priority.\n+    \"\"\"\n+    parser = ConfigParser()\n+    existing_files = parser.read(config_files, encoding='cp1250')","path":"fades/file_options.py","position":37,"original_position":37,"commit_id":"8113fe2a54bdb65b2e6c4c017235d4bb9bc55bf3","original_commit_id":"8113fe2a54bdb65b2e6c4c017235d4bb9bc55bf3","user":{"login":"facundobatista","id":184060,"avatar_url":"https://avatars.githubusercontent.com/u/184060?v=3","gravatar_id":"","url":"https://api.github.com/users/facundobatista","html_url":"https://github.com/facundobatista","followers_url":"https://api.github.com/users/facundobatista/followers","following_url":"https://api.github.com/users/facundobatista/following{/other_user}","gists_url":"https://api.github.com/users/facundobatista/gists{/gist_id}","starred_url":"https://api.github.com/users/facundobatista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundobatista/subscriptions","organizations_url":"https://api.github.com/users/facundobatista/orgs","repos_url":"https://api.github.com/users/facundobatista/repos","events_url":"https://api.github.com/users/facundobatista/events{/privacy}","received_events_url":"https://api.github.com/users/facundobatista/received_events","type":"User","site_admin":false},"body":"cp1250???","created_at":"2016-02-01T22:40:43Z","updated_at":"2016-02-01T22:40:43Z","html_url":"https://github.com/PyAr/fades/pull/169#discussion_r51493443","pull_request_url":"https://api.github.com/repos/PyAr/fades/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/PyAr/fades/pulls/comments/51493443"},"html":{"href":"https://github.com/PyAr/fades/pull/169#discussion_r51493443"},"pull_request":{"href":"https://api.github.com/repos/PyAr/fades/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/PyAr/fades/pulls/169","id":57849410,"html_url":"https://github.com/PyAr/fades/pull/169","diff_url":"https://github.com/PyAr/fades/pull/169.diff","patch_url":"https://github.com/PyAr/fades/pull/169.patch","issue_url":"https://api.github.com/repos/PyAr/fades/issues/169","number":169,"state":"open","locked":false,"title":"WIP: Config files","user":{"login":"gilgamezh","id":1496486,"avatar_url":"https://avatars.githubusercontent.com/u/1496486?v=3","gravatar_id":"","url":"https://api.github.com/users/gilgamezh","html_url":"https://github.com/gilgamezh","followers_url":"https://api.github.com/users/gilgamezh/followers","following_url":"https://api.github.com/users/gilgamezh/following{/other_user}","gists_url":"https://api.github.com/users/gilgamezh/gists{/gist_id}","starred_url":"https://api.github.com/users/gilgamezh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gilgamezh/subscriptions","organizations_url":"https://api.github.com/users/gilgamezh/orgs","repos_url":"https://api.github.com/users/gilgamezh/repos","events_url":"https://api.github.com/users/gilgamezh/events{/privacy}","received_events_url":"https://api.github.com/users/gilgamezh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-01T14:54:02Z","updated_at":"2016-02-01T22:40:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58a34455ae5f4febfaab6f2fe48bbfb987d633cf","assignee":null,"milestone":{"url":"https://api.github.com/repos/PyAr/fades/milestones/6","html_url":"https://github.com/PyAr/fades/milestones/Release%205","labels_url":"https://api.github.com/repos/PyAr/fades/milestones/6/labels","id":1185156,"number":6,"title":"Release 5","description":"","creator":{"login":"facundobatista","id":184060,"avatar_url":"https://avatars.githubusercontent.com/u/184060?v=3","gravatar_id":"","url":"https://api.github.com/users/facundobatista","html_url":"https://github.com/facundobatista","followers_url":"https://api.github.com/users/facundobatista/followers","following_url":"https://api.github.com/users/facundobatista/following{/other_user}","gists_url":"https://api.github.com/users/facundobatista/gists{/gist_id}","starred_url":"https://api.github.com/users/facundobatista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundobatista/subscriptions","organizations_url":"https://api.github.com/users/facundobatista/orgs","repos_url":"https://api.github.com/users/facundobatista/repos","events_url":"https://api.github.com/users/facundobatista/events{/privacy}","received_events_url":"https://api.github.com/users/facundobatista/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":15,"state":"open","created_at":"2015-06-29T12:41:57Z","updated_at":"2016-02-01T14:54:02Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/PyAr/fades/pulls/169/commits","review_comments_url":"https://api.github.com/repos/PyAr/fades/pulls/169/comments","review_comment_url":"https://api.github.com/repos/PyAr/fades/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyAr/fades/issues/169/comments","statuses_url":"https://api.github.com/repos/PyAr/fades/statuses/8113fe2a54bdb65b2e6c4c017235d4bb9bc55bf3","head":{"label":"PyAr:config_files","ref":"config_files","sha":"8113fe2a54bdb65b2e6c4c017235d4bb9bc55bf3","user":{"login":"PyAr","id":5481605,"avatar_url":"https://avatars.githubusercontent.com/u/5481605?v=3","gravatar_id":"","url":"https://api.github.com/users/PyAr","html_url":"https://github.com/PyAr","followers_url":"https://api.github.com/users/PyAr/followers","following_url":"https://api.github.com/users/PyAr/following{/other_user}","gists_url":"https://api.github.com/users/PyAr/gists{/gist_id}","starred_url":"https://api.github.com/users/PyAr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyAr/subscriptions","organizations_url":"https://api.github.com/users/PyAr/orgs","repos_url":"https://api.github.com/users/PyAr/repos","events_url":"https://api.github.com/users/PyAr/events{/privacy}","received_events_url":"https://api.github.com/users/PyAr/received_events","type":"Organization","site_admin":false},"repo":{"id":26737046,"name":"fades","full_name":"PyAr/fades","owner":{"login":"PyAr","id":5481605,"avatar_url":"https://avatars.githubusercontent.com/u/5481605?v=3","gravatar_id":"","url":"https://api.github.com/users/PyAr","html_url":"https://github.com/PyAr","followers_url":"https://api.github.com/users/PyAr/followers","following_url":"https://api.github.com/users/PyAr/following{/other_user}","gists_url":"https://api.github.com/users/PyAr/gists{/gist_id}","starred_url":"https://api.github.com/users/PyAr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyAr/subscriptions","organizations_url":"https://api.github.com/users/PyAr/orgs","repos_url":"https://api.github.com/users/PyAr/repos","events_url":"https://api.github.com/users/PyAr/events{/privacy}","received_events_url":"https://api.github.com/users/PyAr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyAr/fades","description":"FADES","fork":false,"url":"https://api.github.com/repos/PyAr/fades","forks_url":"https://api.github.com/repos/PyAr/fades/forks","keys_url":"https://api.github.com/repos/PyAr/fades/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyAr/fades/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyAr/fades/teams","hooks_url":"https://api.github.com/repos/PyAr/fades/hooks","issue_events_url":"https://api.github.com/repos/PyAr/fades/issues/events{/number}","events_url":"https://api.github.com/repos/PyAr/fades/events","assignees_url":"https://api.github.com/repos/PyAr/fades/assignees{/user}","branches_url":"https://api.github.com/repos/PyAr/fades/branches{/branch}","tags_url":"https://api.github.com/repos/PyAr/fades/tags","blobs_url":"https://api.github.com/repos/PyAr/fades/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyAr/fades/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyAr/fades/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyAr/fades/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyAr/fades/statuses/{sha}","languages_url":"https://api.github.com/repos/PyAr/fades/languages","stargazers_url":"https://api.github.com/repos/PyAr/fades/stargazers","contributors_url":"https://api.github.com/repos/PyAr/fades/contributors","subscribers_url":"https://api.github.com/repos/PyAr/fades/subscribers","subscription_url":"https://api.github.com/repos/PyAr/fades/subscription","commits_url":"https://api.github.com/repos/PyAr/fades/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyAr/fades/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyAr/fades/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyAr/fades/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyAr/fades/contents/{+path}","compare_url":"https://api.github.com/repos/PyAr/fades/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyAr/fades/merges","archive_url":"https://api.github.com/repos/PyAr/fades/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyAr/fades/downloads","issues_url":"https://api.github.com/repos/PyAr/fades/issues{/number}","pulls_url":"https://api.github.com/repos/PyAr/fades/pulls{/number}","milestones_url":"https://api.github.com/repos/PyAr/fades/milestones{/number}","notifications_url":"https://api.github.com/repos/PyAr/fades/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyAr/fades/labels{/name}","releases_url":"https://api.github.com/repos/PyAr/fades/releases{/id}","deployments_url":"https://api.github.com/repos/PyAr/fades/deployments","created_at":"2014-11-17T02:44:04Z","updated_at":"2016-01-13T03:48:17Z","pushed_at":"2016-02-01T14:54:02Z","git_url":"git://github.com/PyAr/fades.git","ssh_url":"git@github.com:PyAr/fades.git","clone_url":"https://github.com/PyAr/fades.git","svn_url":"https://github.com/PyAr/fades","homepage":"http://fades.readthedocs.org","size":2243,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":14,"forks":12,"open_issues":14,"watchers":29,"default_branch":"master"}},"base":{"label":"PyAr:master","ref":"master","sha":"0643fff30690765011012b50c9d4e6ca4638eec7","user":{"login":"PyAr","id":5481605,"avatar_url":"https://avatars.githubusercontent.com/u/5481605?v=3","gravatar_id":"","url":"https://api.github.com/users/PyAr","html_url":"https://github.com/PyAr","followers_url":"https://api.github.com/users/PyAr/followers","following_url":"https://api.github.com/users/PyAr/following{/other_user}","gists_url":"https://api.github.com/users/PyAr/gists{/gist_id}","starred_url":"https://api.github.com/users/PyAr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyAr/subscriptions","organizations_url":"https://api.github.com/users/PyAr/orgs","repos_url":"https://api.github.com/users/PyAr/repos","events_url":"https://api.github.com/users/PyAr/events{/privacy}","received_events_url":"https://api.github.com/users/PyAr/received_events","type":"Organization","site_admin":false},"repo":{"id":26737046,"name":"fades","full_name":"PyAr/fades","owner":{"login":"PyAr","id":5481605,"avatar_url":"https://avatars.githubusercontent.com/u/5481605?v=3","gravatar_id":"","url":"https://api.github.com/users/PyAr","html_url":"https://github.com/PyAr","followers_url":"https://api.github.com/users/PyAr/followers","following_url":"https://api.github.com/users/PyAr/following{/other_user}","gists_url":"https://api.github.com/users/PyAr/gists{/gist_id}","starred_url":"https://api.github.com/users/PyAr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyAr/subscriptions","organizations_url":"https://api.github.com/users/PyAr/orgs","repos_url":"https://api.github.com/users/PyAr/repos","events_url":"https://api.github.com/users/PyAr/events{/privacy}","received_events_url":"https://api.github.com/users/PyAr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyAr/fades","description":"FADES","fork":false,"url":"https://api.github.com/repos/PyAr/fades","forks_url":"https://api.github.com/repos/PyAr/fades/forks","keys_url":"https://api.github.com/repos/PyAr/fades/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyAr/fades/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyAr/fades/teams","hooks_url":"https://api.github.com/repos/PyAr/fades/hooks","issue_events_url":"https://api.github.com/repos/PyAr/fades/issues/events{/number}","events_url":"https://api.github.com/repos/PyAr/fades/events","assignees_url":"https://api.github.com/repos/PyAr/fades/assignees{/user}","branches_url":"https://api.github.com/repos/PyAr/fades/branches{/branch}","tags_url":"https://api.github.com/repos/PyAr/fades/tags","blobs_url":"https://api.github.com/repos/PyAr/fades/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyAr/fades/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyAr/fades/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyAr/fades/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyAr/fades/statuses/{sha}","languages_url":"https://api.github.com/repos/PyAr/fades/languages","stargazers_url":"https://api.github.com/repos/PyAr/fades/stargazers","contributors_url":"https://api.github.com/repos/PyAr/fades/contributors","subscribers_url":"https://api.github.com/repos/PyAr/fades/subscribers","subscription_url":"https://api.github.com/repos/PyAr/fades/subscription","commits_url":"https://api.github.com/repos/PyAr/fades/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyAr/fades/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyAr/fades/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyAr/fades/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyAr/fades/contents/{+path}","compare_url":"https://api.github.com/repos/PyAr/fades/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyAr/fades/merges","archive_url":"https://api.github.com/repos/PyAr/fades/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyAr/fades/downloads","issues_url":"https://api.github.com/repos/PyAr/fades/issues{/number}","pulls_url":"https://api.github.com/repos/PyAr/fades/pulls{/number}","milestones_url":"https://api.github.com/repos/PyAr/fades/milestones{/number}","notifications_url":"https://api.github.com/repos/PyAr/fades/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyAr/fades/labels{/name}","releases_url":"https://api.github.com/repos/PyAr/fades/releases{/id}","deployments_url":"https://api.github.com/repos/PyAr/fades/deployments","created_at":"2014-11-17T02:44:04Z","updated_at":"2016-01-13T03:48:17Z","pushed_at":"2016-02-01T14:54:02Z","git_url":"git://github.com/PyAr/fades.git","ssh_url":"git@github.com:PyAr/fades.git","clone_url":"https://github.com/PyAr/fades.git","svn_url":"https://github.com/PyAr/fades","homepage":"http://fades.readthedocs.org","size":2243,"stargazers_count":29,"watchers_count":29,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":14,"forks":12,"open_issues":14,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PyAr/fades/pulls/169"},"html":{"href":"https://github.com/PyAr/fades/pull/169"},"issue":{"href":"https://api.github.com/repos/PyAr/fades/issues/169"},"comments":{"href":"https://api.github.com/repos/PyAr/fades/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/PyAr/fades/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/PyAr/fades/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyAr/fades/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/PyAr/fades/statuses/8113fe2a54bdb65b2e6c4c017235d4bb9bc55bf3"}}}}