geographika / mappyfile

A pure Python MapFile parser for working with MapServer
MIT License
71 stars 20 forks source link

Add option to avoid overwriting values in a dict with the update method #190

Closed geographika closed 1 year ago

geographika commented 1 year ago

This allows updating objects with defaults without overwriting existing values:

mappyfile.update(d1, d2, overwrite=False)

See test case for example.

coveralls commented 1 year ago

Coverage Status

coverage: 91.994% (+0.006%) from 91.988% when pulling 3bf59f4952bdf99b32501665a504fa140bb73139 on update-overwrite-option into ea0ec0852c0767d4022c5b79f0bc384d4012f6d8 on master.