{ "info": { "author": null, "author_email": null, "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "::\n\n Python\n _ __ ___ __| |___ _ _ _ _ (_)______\n | ' \\/ _ \\/ _` / -_) '_| ' \\| |_ / -_)\n |_|_|_\\___/\\__,_\\___|_| |_||_|_/__\\___|\n\n.. image:: https://travis-ci.org/myint/python-modernize.svg?branch=master\n :target: https://travis-ci.org/myint/python-modernize\n :alt: Build status\n\npython-modernize is a very thin wrapper around lib2to3 to utilize it to make\nPython 2 code more modern with the intention of eventually porting it over to\nPython 3. This is an unofficial fork (of\nhttps://github.com/mitsuhiko/python-modernize) that runs on both Python 2 and\n3.\n\nIt does not guarantee, but it attempts to spit out a Python 2/3\ncompatible codebase.\n\nUnicode Literal Control:\n\n- By default modernize will leave literals alone.\n- The ``--future-unicode`` flag imports the ``unicode_literals`` from the\n ``__future__`` module. This requires Python 2.6 and later and will require\n that you mark bytestrings with ``b''`` and native strings in ``str(b'')`` or\n something similar that survives the transformation.\n\n\nInstallation\n------------\n\nFrom pip::\n\n $ pip install --upgrade modernize3k\n\n\nUsage\n-----\n\nPreview changes on a file or directory::\n\n $ python-modernize example.py\n\nWrite the changes::\n\n $ python-modernize --write example.py\n\nModify doctests rather than normal code::\n\n $ python-modernize --write --doctests example.py\n\n\nTests\n-----\n\nThe tests use cram_::\n\n $ cram --indent=4 test.cram\n\n.. _cram: https://pypi.python.org/pypi/cram", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/myint/python-modernize", "keywords": null, "license": null, "maintainer": null, "maintainer_email": null, "name": "modernize3k", "package_url": "https://pypi.org/project/modernize3k/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/modernize3k/", "project_urls": { "Homepage": "http://github.com/myint/python-modernize" }, "release_url": "https://pypi.org/project/modernize3k/0.5/", "requires_dist": null, "requires_python": null, "summary": "A hack on top of 2to3 for modernizing code for hybrid codebases.", "version": "0.5" }, "last_serial": 1404210, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "70d7653793f1e5ba49517fe8e6ec1b6d", "sha256": "c43df754c2823b4273d3df9fbe987401400a45f4c9a61d8769412ed5fb741dc2" }, "downloads": -1, "filename": "modernize3k-0.3.tar.gz", "has_sig": false, "md5_digest": "70d7653793f1e5ba49517fe8e6ec1b6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8226, "upload_time": "2013-10-02T13:34:31", "url": "https://files.pythonhosted.org/packages/33/ca/4c896ca1687cc201bddc922782d93144adffb9760f622e3e93d0fd60346f/modernize3k-0.3.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "cc5f8df813c8d0a6e0c7cc3dcaf88c35", "sha256": "5a5aa2d5f90c21b9b68e8eb8aadccae38f578e9950ff4ee54cb92456c0ec1231" }, "downloads": -1, "filename": "modernize3k-0.3.2.tar.gz", "has_sig": false, "md5_digest": "cc5f8df813c8d0a6e0c7cc3dcaf88c35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8226, "upload_time": "2013-10-02T13:35:58", "url": "https://files.pythonhosted.org/packages/91/5c/c40e049cff00de0a85edeb6b1dad898d7d0759105a2cd214119c02314ee4/modernize3k-0.3.2.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "42cf7d88eff69185ba679206ed565d9e", "sha256": "24262725bdeed1b405f04d94ef53b8ca4f55f4f1458aa3ced3ea049081d1932f" }, "downloads": -1, "filename": "modernize3k-0.3.4.tar.gz", "has_sig": false, "md5_digest": "42cf7d88eff69185ba679206ed565d9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8373, "upload_time": "2013-12-28T23:03:52", "url": "https://files.pythonhosted.org/packages/d3/3a/3a4cc79d749c6e458ba2d7687d7b191eb280b49d6c43d597cabe2eddabf7/modernize3k-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "1467baaf528f1b03ffb6b8fda35c02f4", "sha256": "eb28d2acb2096a4abbb013f49df6fa960cc6d90e02c32ce5ac5d987b3ca9cc2e" }, "downloads": -1, "filename": "modernize3k-0.3.5.tar.gz", "has_sig": false, "md5_digest": "1467baaf528f1b03ffb6b8fda35c02f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8365, "upload_time": "2014-04-15T14:44:22", "url": "https://files.pythonhosted.org/packages/f4/9f/d48d1fde195a4e24669ab28a14447baff2727a3e44bb4b530fc6b5b0617a/modernize3k-0.3.5.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "f29f052a0c6c79d9703c95548d52202b", "sha256": "d88b0957c0a32975ef5106f0b89fffdb6749fb80e4278f6d3e709ec1b593deb6" }, "downloads": -1, "filename": "modernize3k-0.4.tar.gz", "has_sig": false, "md5_digest": "f29f052a0c6c79d9703c95548d52202b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8381, "upload_time": "2014-10-09T13:45:57", "url": "https://files.pythonhosted.org/packages/9b/89/f038dbd42c984724a8c0e03c6f86be3c3773df022572051dce4b2f0f31be/modernize3k-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "b6648e9f4998cb01a5bf1bb82597bf29", "sha256": "2d480353175523576452f5aa31510dfa931faf3bae12b0fd9c21ce86debc7e6f" }, "downloads": -1, "filename": "modernize3k-0.5.tar.gz", "has_sig": false, "md5_digest": "b6648e9f4998cb01a5bf1bb82597bf29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8404, "upload_time": "2015-01-31T13:51:18", "url": "https://files.pythonhosted.org/packages/6a/13/3b4b12b697ac776685adb17d680a9246b852bf26e1794762bf5bcf98e3cc/modernize3k-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6648e9f4998cb01a5bf1bb82597bf29", "sha256": "2d480353175523576452f5aa31510dfa931faf3bae12b0fd9c21ce86debc7e6f" }, "downloads": -1, "filename": "modernize3k-0.5.tar.gz", "has_sig": false, "md5_digest": "b6648e9f4998cb01a5bf1bb82597bf29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8404, "upload_time": "2015-01-31T13:51:18", "url": "https://files.pythonhosted.org/packages/6a/13/3b4b12b697ac776685adb17d680a9246b852bf26e1794762bf5bcf98e3cc/modernize3k-0.5.tar.gz" } ] }