소스 검색

Fit inadvertent conversion of ordered dict to dict.

Dan Helfman 6 년 전
부모
커밋
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}-'