René's URL Explorer Experiment


Title: Fix several ResourceWarnings: unclose file by BoboTiG · Pull Request #46 · glamp/bashplotlib · GitHub

Open Graph Title: Fix several ResourceWarnings: unclose file by BoboTiG · Pull Request #46 · glamp/bashplotlib

X Title: Fix several ResourceWarnings: unclose file by BoboTiG · Pull Request #46 · glamp/bashplotlib

Description: Hello, This is a little patch for resource leaks such as: $ python setup.py install setup.py:14: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' encoding='UTF-8'> long_description=open("README.rst").read(), running install ... $ bash examples/sample.sh scatterplot.py:100: ResourceWarning: unclosed file <_io.TextIOWrapper name='examples/data/texas.txt' mode='r' encoding='UTF-8'> plot_scatter(opts.f, opts.x, opts.y, opts.size, opts.pch, opts.colour, opts.t) with x and y coords scatterplot.py:57: ResourceWarning: unclosed file <_io.TextIOWrapper name='examples/data/x_test.txt' mode='r' encoding='UTF-8'> xs = [float(str(row).strip()) for row in open(xs)] scatterplot.py:58: ResourceWarning: unclosed file <_io.TextIOWrapper name='examples/data/y_test.txt' mode='r' encoding='UTF-8'> ys = [float(str(row).strip()) for row in open(ys)] histogram.py:109: ResourceWarning: unclosed file <_io.TextIOWrapper name='examples/data/exp.txt' mode='r' encoding='UTF-8'> f = open(f).readlines() I also fixed this error: Traceback (most recent call last): File ".../bin/scatter", line 11, in load_entry_point('bashplotlib==0.6.5', 'console_scripts', 'scatter')() File "scatterplot.py", line 100, in main plot_scatter(opts.f, opts.x, opts.y, opts.size, opts.pch, opts.colour, opts.t) File "scatterplot.py", line 74, in plot_scatter if cs: UnboundLocalError: local variable 'cs' referenced before assignment Signed-off-by: Mickaël Schoentgen contact@tiger-222.fr

Open Graph Description: Hello, This is a little patch for resource leaks such as: $ python setup.py install setup.py:14: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' enco...

X Description: Hello, This is a little patch for resource leaks such as: $ python setup.py install setup.py:14: ResourceWarning: unclosed file &lt;_io.TextIOWrapper name=&#39;README.rst&#39; mode=&...

Opengraph URL: https://github.com/glamp/bashplotlib/pull/46

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:31f4c7d8-b5ed-6f53-2ecd-6613c9cf59f9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE80A:1FDEED:912E00:B9A7AF:697F9E36
html-safe-nonce3ac71b78c0964ada5467c4e754ca50b1cffdbc9d5f22aaa9e824d459754ca812
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODBBOjFGREVFRDo5MTJFMDA6QjlBN0FGOjY5N0Y5RTM2IiwidmlzaXRvcl9pZCI6IjYyNDI0Mjc4NDYyNzk1MzYxODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1717be011004268f3db2aef08a9eca493f3d85a8c5ca16ddbec119d09dacdbf5
hovercard-subject-tagpull_request:241765584
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/glamp/bashplotlib/pull/46/files
twitter:imagehttps://avatars.githubusercontent.com/u/2033598?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2033598?s=400&v=4
og:image:altHello, This is a little patch for resource leaks such as: $ python setup.py install setup.py:14: ResourceWarning: unclosed file <_io.TextIOWrapper name='README.rst' mode='r' enco...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/glamp/bashplotlib git https://github.com/glamp/bashplotlib.git
octolytics-dimension-user_id1409333
octolytics-dimension-user_loginglamp
octolytics-dimension-repository_id7142310
octolytics-dimension-repository_nwoglamp/bashplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7142310
octolytics-dimension-repository_network_root_nwoglamp/bashplotlib
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/glamp/bashplotlib/pull/46/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fglamp%2Fbashplotlib%2Fpull%2F46%2Ffiles
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%2Fglamp%2Fbashplotlib%2Fpull%2F46%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=glamp%2Fbashplotlib
Reloadhttps://github.com/glamp/bashplotlib/pull/46/files
Reloadhttps://github.com/glamp/bashplotlib/pull/46/files
Reloadhttps://github.com/glamp/bashplotlib/pull/46/files
glamp https://github.com/glamp
bashplotlibhttps://github.com/glamp/bashplotlib
Notifications https://github.com/login?return_to=%2Fglamp%2Fbashplotlib
Fork 142 https://github.com/login?return_to=%2Fglamp%2Fbashplotlib
Star 1.9k https://github.com/login?return_to=%2Fglamp%2Fbashplotlib
Code https://github.com/glamp/bashplotlib
Issues 19 https://github.com/glamp/bashplotlib/issues
Pull requests 5 https://github.com/glamp/bashplotlib/pulls
Actions https://github.com/glamp/bashplotlib/actions
Projects 0 https://github.com/glamp/bashplotlib/projects
Wiki https://github.com/glamp/bashplotlib/wiki
Security 0 https://github.com/glamp/bashplotlib/security
Insights https://github.com/glamp/bashplotlib/pulse
Code https://github.com/glamp/bashplotlib
Issues https://github.com/glamp/bashplotlib/issues
Pull requests https://github.com/glamp/bashplotlib/pulls
Actions https://github.com/glamp/bashplotlib/actions
Projects https://github.com/glamp/bashplotlib/projects
Wiki https://github.com/glamp/bashplotlib/wiki
Security https://github.com/glamp/bashplotlib/security
Insights https://github.com/glamp/bashplotlib/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fglamp%2Fbashplotlib%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fglamp%2Fbashplotlib%2Fissues%2Fnew%2Fchoose
glamphttps://github.com/glamp
glamp:masterhttps://github.com/glamp/bashplotlib/tree/master
Conversation 0 https://github.com/glamp/bashplotlib/pull/46
Commits 1 https://github.com/glamp/bashplotlib/pull/46/commits
Checks 0 https://github.com/glamp/bashplotlib/pull/46/checks
Files changed https://github.com/glamp/bashplotlib/pull/46/files
Please reload this pagehttps://github.com/glamp/bashplotlib/pull/46/files
Fix several ResourceWarnings: unclose file https://github.com/glamp/bashplotlib/pull/46/files#top
Show all changes 1 commit https://github.com/glamp/bashplotlib/pull/46/files
53ee780 Fix several ResourceWarnings: unclose file BoboTiG Jan 2, 2019 https://github.com/glamp/bashplotlib/pull/46/commits/53ee78074e30cce19aa38520e7c7dcc626680d83
Clear filters https://github.com/glamp/bashplotlib/pull/46/files
Please reload this pagehttps://github.com/glamp/bashplotlib/pull/46/files
Please reload this pagehttps://github.com/glamp/bashplotlib/pull/46/files
histogram.py https://github.com/glamp/bashplotlib/pull/46/files#diff-39835ad66af974025d3635b02c33932a273bfab16df2a324886e354f8dfcfa96
scatterplot.py https://github.com/glamp/bashplotlib/pull/46/files#diff-e833ded2b424d9779f78a8e668322e8dbfc435e8ba180761857d3b34226e849a
setup.py https://github.com/glamp/bashplotlib/pull/46/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
bashplotlib/histogram.pyhttps://github.com/glamp/bashplotlib/pull/46/files#diff-39835ad66af974025d3635b02c33932a273bfab16df2a324886e354f8dfcfa96
View file https://github.com/glamp/bashplotlib/blob/53ee78074e30cce19aa38520e7c7dcc626680d83/bashplotlib/histogram.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/glamp/bashplotlib/pull/46/{{ revealButtonHref }}
https://github.com/glamp/bashplotlib/pull/46/files#diff-39835ad66af974025d3635b02c33932a273bfab16df2a324886e354f8dfcfa96
https://github.com/glamp/bashplotlib/pull/46/files#diff-39835ad66af974025d3635b02c33932a273bfab16df2a324886e354f8dfcfa96
https://github.com/glamp/bashplotlib/pull/46/files#diff-39835ad66af974025d3635b02c33932a273bfab16df2a324886e354f8dfcfa96
https://github.com/glamp/bashplotlib/pull/46/files#diff-39835ad66af974025d3635b02c33932a273bfab16df2a324886e354f8dfcfa96
bashplotlib/scatterplot.pyhttps://github.com/glamp/bashplotlib/pull/46/files#diff-e833ded2b424d9779f78a8e668322e8dbfc435e8ba180761857d3b34226e849a
View file https://github.com/glamp/bashplotlib/blob/53ee78074e30cce19aa38520e7c7dcc626680d83/bashplotlib/scatterplot.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/glamp/bashplotlib/pull/46/{{ revealButtonHref }}
https://github.com/glamp/bashplotlib/pull/46/files#diff-e833ded2b424d9779f78a8e668322e8dbfc435e8ba180761857d3b34226e849a
https://github.com/glamp/bashplotlib/pull/46/files#diff-e833ded2b424d9779f78a8e668322e8dbfc435e8ba180761857d3b34226e849a
setup.pyhttps://github.com/glamp/bashplotlib/pull/46/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
View file https://github.com/glamp/bashplotlib/blob/53ee78074e30cce19aa38520e7c7dcc626680d83/setup.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/glamp/bashplotlib/pull/46/{{ revealButtonHref }}
https://github.com/glamp/bashplotlib/pull/46/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
https://github.com/glamp/bashplotlib/pull/46/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
https://github.com/glamp/bashplotlib/pull/46/files#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7
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.