magisystem0408 / yolov5-DeepSort-RealSenseD435i

realsense+yolov5+deepsense D435i
GNU General Public License v3.0
16 stars 3 forks source link

Remove deprecated `__future__` imports #14

Closed pixeebot[bot] closed 4 months ago

pixeebot[bot] commented 5 months ago

Many older codebases have __future__ imports for forwards compatibility with features. As of this writing, all but one of those features is now stable in all currently supported versions of Python and so the imports are no longer needed. While such imports are harmless, they are also unnecessary and in most cases you probably just forgot to remove them.

This codemod removes all such __future__ imports, preserving only those that are still necessary for forwards compatibility.

Our changes look like the following:

 import os
-from __future__ import print_function

 print("HELLO")
More reading * [https://docs.python.org/3/library/__future__.html](https://docs.python.org/3/library/__future__.html)

Powered by: pixeebot (codemod ID: pixee:python/remove-future-imports)

pixeebot[bot] commented 5 months ago

I'm confident in this change, but I'm not a maintainer of this project. Do you see any reason not to merge it?

If this change was not helpful, or you have suggestions for improvements, please let me know!

pixeebot[bot] commented 5 months ago

Just a friendly ping to remind you about this change. If there are concerns about it, we'd love to hear about them!

pixeebot[bot] commented 4 months ago

This change may not be a priority right now, so I'll close it. If there was something I could have done better, please let me know!

You can also customize me to make sure I'm working with you in the way you want.