瀏覽代碼

Fit inadvertent conversion of ordered dict to dict.

Dan Helfman 5 年之前
父節點
當前提交
9ec75ccf3f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borgmatic/borg/prune.py

+ 1 - 1
borgmatic/borg/prune.py

@@ -21,7 +21,7 @@ def _make_prune_flags(retention_config):
             ('--keep-monthly', '6'),
         )
     '''
-    config = dict(retention_config)
+    config = retention_config.copy()
 
     if 'prefix' not in config:
         config['prefix'] = '{hostname}-'