V7.3.1-RC3 and devel
All
I'll start by saying I'm not a developer for the project, but a user.
I noticed in the codebase a number of files (I have counted 11 so far), a couple of sqlite3 connections, and a couple of socket connections, all closed manually and not handled (meaning they're not closed in a "try-finally" at the least) for a possibility of exceptions occurring while said connections are live.
Examples:
Sqlite3 connection:
https://github.com/Tribler/tribler/blob/1b250e16e5d76ff60fe801e22b2dab3bd6907b3b/Tribler/Core/Upgrade/db72_to_pony.py#L91
I'll be happy to aid the project and pull request to migrate said resources to use a "with" statement (which is of course compatible with python 2.5+ and 3.0+).
Hi!
That would be a very nice addition to the code base. Some of the files you linked are over five years old and contain code of many developers that have worked on this project in the past.
Every code contribution that makes Tribler better is more than welcome 馃憤. I think it is the best to coordinate these efforts with @xoriole or @ichorid since they are currently the main developers.
@Solomon1732 , you're very welcome to do it!
Create a personal fork of Tribler repository, create a new feature branch from the top of devel, make your changes, creat a PR, have it accepted. That is it!
:wink:
@ichorid any naming convention for the pull request's/branch's name?
@ichorid any naming convention for the pull request's/branch's name?
Typically, I name feature/fix branches with f_ to distinguish these from special branches.
Most helpful comment
@Solomon1732 , you're very welcome to do it!
Create a personal fork of Tribler repository, create a new feature branch from the top of
devel, make your changes, creat a PR, have it accepted. That is it!:wink: