-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use deepcopy for default rqmt (#160)
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Author: Jan-Thorsten Peter <[email protected]> | ||
|
||
import collections | ||
import copy | ||
import logging | ||
import os | ||
import psutil | ||
|
@@ -72,7 +73,7 @@ def get_submit_history(self, task): | |
return id_to_rqmt | ||
|
||
def add_defaults_to_rqmt(self, task, rqmt): | ||
s = self.get_default_rqmt(task).copy() | ||
s = copy.deepcopy(self.get_default_rqmt(task)) | ||
s.update(rqmt) | ||
return s | ||
|
||
|