{"action":"created","issue":{"url":"https://api.github.com/repos/peritus/bumpversion/issues/110","labels_url":"https://api.github.com/repos/peritus/bumpversion/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/peritus/bumpversion/issues/110/comments","events_url":"https://api.github.com/repos/peritus/bumpversion/issues/110/events","html_url":"https://github.com/peritus/bumpversion/issues/110","id":99730427,"number":110,"title":"Documentation bug: smart quotes","user":{"login":"coredumperror","id":413571,"avatar_url":"https://avatars.githubusercontent.com/u/413571?v=3","gravatar_id":"","url":"https://api.github.com/users/coredumperror","html_url":"https://github.com/coredumperror","followers_url":"https://api.github.com/users/coredumperror/followers","following_url":"https://api.github.com/users/coredumperror/following{/other_user}","gists_url":"https://api.github.com/users/coredumperror/gists{/gist_id}","starred_url":"https://api.github.com/users/coredumperror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coredumperror/subscriptions","organizations_url":"https://api.github.com/users/coredumperror/orgs","repos_url":"https://api.github.com/users/coredumperror/repos","events_url":"https://api.github.com/users/coredumperror/events{/privacy}","received_events_url":"https://api.github.com/users/coredumperror/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-07T21:05:38Z","updated_at":"2015-08-10T20:33:28Z","closed_at":null,"body":"On the PyPI page for bumpversion, the documented defaults for settings which take strings surround the strings with smartquotes. These can't be copied directly to a `.bumpversion.cfg` file because you'll get this error if you do so:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/bumpversion\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/bumpversion/__init__.py\", line 695, in main\r\n    config.write(log_config)\r\n  File \"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ConfigParser.py\", line 412, in write\r\n    key = \" = \".join((key, str(value).replace('\\n', '\\n\\t')))\r\nUnicodeEncodeError: 'ascii' codec can't encode character u'\\u201c' in position 0: ordinal not in range(128)\r\n```\r\n\r\nI would like to request that all these smart quotes (and other other non-ascii characters in the docs) be replaced with ascii-compatible characters.\r\n\r\nEDIT: Unfortunately, after some more testing, it looks like this is actually PyPI's fault, rather than yours. Copying the default strings from the github display of the README gives real quotes. Maybe you could add some de-smartification code to the parser? Though that seems really silly.\r\n\r\nTL;DR F*$% \"smart\" quotes."},"comment":{"url":"https://api.github.com/repos/peritus/bumpversion/issues/comments/129598169","html_url":"https://github.com/peritus/bumpversion/issues/110#issuecomment-129598169","issue_url":"https://api.github.com/repos/peritus/bumpversion/issues/110","id":129598169,"user":{"login":"coredumperror","id":413571,"avatar_url":"https://avatars.githubusercontent.com/u/413571?v=3","gravatar_id":"","url":"https://api.github.com/users/coredumperror","html_url":"https://github.com/coredumperror","followers_url":"https://api.github.com/users/coredumperror/followers","following_url":"https://api.github.com/users/coredumperror/following{/other_user}","gists_url":"https://api.github.com/users/coredumperror/gists{/gist_id}","starred_url":"https://api.github.com/users/coredumperror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coredumperror/subscriptions","organizations_url":"https://api.github.com/users/coredumperror/orgs","repos_url":"https://api.github.com/users/coredumperror/repos","events_url":"https://api.github.com/users/coredumperror/events{/privacy}","received_events_url":"https://api.github.com/users/coredumperror/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T20:33:28Z","updated_at":"2015-08-10T20:33:28Z","body":"So what, if anything, can I do to make it possible to test unicode-containing config files in Python 2.7?"}}