JuanjoSalvador / NyaaPy

Unofficial Python wrapper for Nyaa anime torrent sites
MIT License
47 stars 23 forks source link

Refactor "utils" module to not use a class #43

Closed JuanjoSalvador closed 4 years ago

JuanjoSalvador commented 4 years ago

The Utils class should not be a class, actually is just a bunch of common functions joined into a single file. So, we can import that functions without instanciate a class.

Instead of using

from NyaaPy.utils import Utils
utils = Utils()

we can use just

from Nyaa import utils

utils.myFunction()

Related: #21

JuanjoSalvador commented 4 years ago

Fixed by @geraldobraz.