dthonon / Client_API_VN

Export from VisioNature (Biolovision) web site to local postgresql database
GNU General Public License v3.0
3 stars 1 forks source link

Change deprecated code #143

Closed dthonon closed 2 years ago

dthonon commented 3 years ago
Calling URL() directly is deprecated and will be disabled in a future release.  The public constructor for URL is now the URL.create() method.
    self._db = create_engine(URL(**db_url), echo=False)
load will be removed, use

    yaml=YAML(typ='unsafe', pure=True)
    yaml.load(...)

  instead
    document = ruamelyaml.load(yaml_string, Loader=DynamicStrictYAMLLoader)

dump will be removed, use

    yaml=YAML(typ='unsafe', pure=True)
    yaml.dump(...)

  instead
    len(dump(slicedpart, Dumper=RoundTripDumper).rstrip().split("\n")) + 1
dthonon commented 2 years ago

yaml.load message does not appear any more. URL.create() is now used.