Skip to content

Commit 0835859

Browse files
committed
Fixed another instance of Python 2.7 backwards compatibility for list copying (in solve function)
1 parent 1a5ef53 commit 0835859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dfols/solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ def solve(objfun, x0, args=(), bounds=None, projections=[], npt=None, rhobeg=Non
893893
xlb = xl.copy()
894894
xub = xu.copy()
895895
bproj = lambda w: pbox(w,xlb,xub)
896-
projections = projections.copy()
896+
projections = list(projections)
897897
projections.append(bproj)
898898

899899
# since using arbitrary constraints, don't constrain otherwise

0 commit comments

Comments
 (0)