title: python-2.5, "argument must be dict, not dict"
body: <p>Python 2.5 expects a dict, not a dict?</p>
  
  <pre><code># python --version
  Python 2.5.5
  </code></pre>
  
  <p>Opensolaris derivate (NexentaStor), trying to add zfs permissions but this strange error prevents me.</p>
  
  <pre><code>File "/usr/lib/python2.4/site-packages/zfs/dataset.py", line 203, in set_fsacl
    return zfs.ioctl.set_fsacl(self.name, un, d)
  TypeError: argument 3 must be dict, not dict
  </code></pre>
  
  <p>Here's the block of code in question, I added some printing to see types and such:</p>
  
  <pre><code>    def set_fsacl(self, un, d):
              """Add to the "zfs allow"-ed permissions on this Dataset.
  
              un is True if the specified permissions should be removed.
  
              d is a dict specifying which permissions to add/remove:
              { "whostr" -&gt; None # remove all perms for this entity
                "whostr" -&gt; { "perm" -&gt; None} # add/remove these perms
              } """
  
              print self.name
              print un
              print d
              print type(d)
              return zfs.ioctl.set_fsacl(self.name, un, d)
  </code></pre>
  
  <p>My print statements gives the following output:</p>
  
  <pre><code>tank/xenserver_vol1  &lt;-- self.name
  False  &lt;-- un
  {'ud$1001': {'send': None}, 'ul$1001': {'send': None}}  &lt;-- d
  &lt;type 'dict'&gt;  &lt;-- type(d)
  </code></pre>