Commits

Gary Oberbrunner committed e215ae7

Fix for #2690: handle null __semi_deepcopy.

  • Participants
  • Parent commits ada1ed8

Comments (0)

Files changed (2)

File src/CHANGES.txt

 
 RELEASE 2.1.0.alpha.yyyymmdd - NEW DATE WILL BE INSERTED HERE
 
+  From Dmitry R.:
+    - Handle Environment in case __semi_deepcopy is None
+
   From Benoit Belley:
 
     - Much improved support for Windows UNC paths (\\SERVERNAME).

File src/engine/SCons/Util.py

     if copier:
         return copier(x)
     else:
-        if hasattr(x, '__semi_deepcopy__'):
+        if hasattr(x, '__semi_deepcopy__') and callable(x.__semi_deepcopy__):
             return x.__semi_deepcopy__()
         elif isinstance(x, UserDict):
             return x.__class__(_semi_deepcopy_dict(x))