[yt-svn] commit/yt: MatthewTurk: Removing an immutable from	argument list.
    Bitbucket 
    commits-noreply at bitbucket.org
       
    Sun Jan 13 19:30:39 PST 2013
    
    
  
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/35f426722e71/
changeset:   35f426722e71
branch:      yt
user:        MatthewTurk
date:        2013-01-14 04:29:40
summary:     Removing an immutable from argument list.
affected #:  1 file
diff -r bf5f6f75516f41ac36c824c62df8639a684ffc1a -r 35f426722e7158425fa4afe75f03421662019194 yt/frontends/stream/data_structures.py
--- a/yt/frontends/stream/data_structures.py
+++ b/yt/frontends/stream/data_structures.py
@@ -105,7 +105,8 @@
 class StreamHandler(object):
     def __init__(self, left_edges, right_edges, dimensions,
                  levels, parent_ids, particle_count, processor_ids,
-                 fields, io = None, particle_types = {}):
+                 fields, io = None, particle_types = None):
+        if particle_types is None: particle_types = {}
         self.left_edges = left_edges
         self.right_edges = right_edges
         self.dimensions = dimensions
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
    
    
More information about the yt-svn
mailing list