René's URL Explorer Experiment


Title: Multiple import form for __future__ imports confuses futurize · Issue #113 · PythonCharmers/python-future · GitHub

Open Graph Title: Multiple import form for __future__ imports confuses futurize · Issue #113 · PythonCharmers/python-future

X Title: Multiple import form for __future__ imports confuses futurize · Issue #113 · PythonCharmers/python-future

Description: Running futurize -1 -a -w file.py on a file that contains from __future__ import (division, print_statement) (from some previous work, for example), fails with: Traceback (most recent call last): File "/usr/bin/futurize", line 9, in

Open Graph Description: Running futurize -1 -a -w file.py on a file that contains from __future__ import (division, print_statement) (from some previous work, for example), fails with: Traceback (most recent call last): F...

X Description: Running futurize -1 -a -w file.py on a file that contains from __future__ import (division, print_statement) (from some previous work, for example), fails with: Traceback (most recent call last): F...

Opengraph URL: https://github.com/PythonCharmers/python-future/issues/113

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Multiple import form for __future__ imports confuses futurize","articleBody":"Running `futurize -1 -a -w file.py` on a file that contains `from __future__ import (division, print_statement)` (from some previous work, for example), fails with:\n\n```\nTraceback (most recent call last):\n  File \"/usr/bin/futurize\", line 9, in \u003cmodule\u003e\n    load_entry_point('future==0.14.1', 'console_scripts', 'futurize')()\n  File \"/usr/lib/python2.7/site-packages/libfuturize/main.py\", line 295, in main\n    options.processes)\n  File \"/usr/lib64/python2.7/lib2to3/refactor.py\", line 706, in refactor\n    items, write, doctests_only)\n  File \"/usr/lib64/python2.7/lib2to3/refactor.py\", line 301, in refactor\n    self.refactor_file(dir_or_file, write, doctests_only)\n  File \"/usr/lib64/python2.7/lib2to3/refactor.py\", line 747, in refactor_file\n    *args, **kwargs)\n  File \"/usr/lib64/python2.7/lib2to3/refactor.py\", line 354, in refactor_file\n    tree = self.refactor_string(input, filename)\n  File \"/usr/lib64/python2.7/lib2to3/refactor.py\", line 386, in refactor_string\n    self.refactor_tree(tree, name)\n  File \"/usr/lib64/python2.7/lib2to3/refactor.py\", line 460, in refactor_tree\n    new = fixer.transform(node, results)\n  File \"/usr/lib/python2.7/site-packages/libfuturize/fixes/fix_add__future__imports_except_unicode_literals.py\", line 24, in transform\n    future_import(u\"print_function\", node)\n  File \"/usr/lib/python2.7/site-packages/libfuturize/fixer_util.py\", line 210, in future_import\n    names = check_future_import(node)\n  File \"/usr/lib/python2.7/site-packages/libfuturize/fixer_util.py\", line 424, in check_future_import\n    assert False, \"strange import: %s\" % savenode\nAssertionError: strange import: \nfrom __future__ import (division, print_function)\n```\n\n~~Note: Multiple imports on one line are usually against PEP8, but it seems that pep8 doesn't mind it with `__future__` imports...~~ Sorry, `import x, y, z` is against PEP8, but `from a import x, y z` is fine.\n","author":{"url":"https://github.com/QuLogic","@type":"Person","name":"QuLogic"},"datePublished":"2014-10-06T07:48:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/113/python-future/issues/113"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5b3d678d-0fe8-01db-47e5-c82412ff0971
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA18:3244AB:31EC3B:431754:69697B7D
html-safe-nonceb4c8220985cb18a3a868bfb00a5c581873dba96b7a1e7316b41c7d6b51d0b1e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTE4OjMyNDRBQjozMUVDM0I6NDMxNzU0OjY5Njk3QjdEIiwidmlzaXRvcl9pZCI6IjcwNjE5ODA3MTUyODgxOTgwMTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb879f250bb6d18db5b9f4a4abd2769cd0d9e05db5eae0e7f5e2a971a65ef1b43
hovercard-subject-tagissue:44956042
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PythonCharmers/python-future/113/issue_layout
twitter:imagehttps://opengraph.githubassets.com/24d3ebe59099e4c980c2c9c0f7fd3a31f2510ffe7c96a070fdc5b7bd7a685ad2/PythonCharmers/python-future/issues/113
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/24d3ebe59099e4c980c2c9c0f7fd3a31f2510ffe7c96a070fdc5b7bd7a685ad2/PythonCharmers/python-future/issues/113
og:image:altRunning futurize -1 -a -w file.py on a file that contains from __future__ import (division, print_statement) (from some previous work, for example), fails with: Traceback (most recent call last): F...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameQuLogic
hostnamegithub.com
expected-hostnamegithub.com
Nonef33e4b94c8824ab2b434d82a94139432fb5ebee9df4b75304140ad22508c4a77
turbo-cache-controlno-preview
go-importgithub.com/PythonCharmers/python-future git https://github.com/PythonCharmers/python-future.git
octolytics-dimension-user_id3365815
octolytics-dimension-user_loginPythonCharmers
octolytics-dimension-repository_id11403699
octolytics-dimension-repository_nwoPythonCharmers/python-future
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id11403699
octolytics-dimension-repository_network_root_nwoPythonCharmers/python-future
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release48f380098b30acbb700b04f1724481ca10d574fc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PythonCharmers/python-future/issues/113#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonCharmers%2Fpython-future%2Fissues%2F113
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPythonCharmers%2Fpython-future%2Fissues%2F113
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PythonCharmers%2Fpython-future
Reloadhttps://github.com/PythonCharmers/python-future/issues/113
Reloadhttps://github.com/PythonCharmers/python-future/issues/113
Reloadhttps://github.com/PythonCharmers/python-future/issues/113
PythonCharmers https://github.com/PythonCharmers
python-futurehttps://github.com/PythonCharmers/python-future
Notifications https://github.com/login?return_to=%2FPythonCharmers%2Fpython-future
Fork 295 https://github.com/login?return_to=%2FPythonCharmers%2Fpython-future
Star 1.2k https://github.com/login?return_to=%2FPythonCharmers%2Fpython-future
Code https://github.com/PythonCharmers/python-future
Issues 184 https://github.com/PythonCharmers/python-future/issues
Pull requests 5 https://github.com/PythonCharmers/python-future/pulls
Actions https://github.com/PythonCharmers/python-future/actions
Projects 0 https://github.com/PythonCharmers/python-future/projects
Wiki https://github.com/PythonCharmers/python-future/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/PythonCharmers/python-future/security
Please reload this pagehttps://github.com/PythonCharmers/python-future/issues/113
Insights https://github.com/PythonCharmers/python-future/pulse
Code https://github.com/PythonCharmers/python-future
Issues https://github.com/PythonCharmers/python-future/issues
Pull requests https://github.com/PythonCharmers/python-future/pulls
Actions https://github.com/PythonCharmers/python-future/actions
Projects https://github.com/PythonCharmers/python-future/projects
Wiki https://github.com/PythonCharmers/python-future/wiki
Security https://github.com/PythonCharmers/python-future/security
Insights https://github.com/PythonCharmers/python-future/pulse
New issuehttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/113
New issuehttps://github.com/login?return_to=https://github.com/PythonCharmers/python-future/issues/113
Multiple import form for __future__ imports confuses futurizehttps://github.com/PythonCharmers/python-future/issues/113#top
https://github.com/QuLogic
https://github.com/QuLogic
QuLogichttps://github.com/QuLogic
on Oct 6, 2014https://github.com/PythonCharmers/python-future/issues/113#issue-44956042
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.