Skip to content

Commit

Permalink
fix a couple of default block values
Browse files Browse the repository at this point in the history
should be None

closes ipython#4103

should be backported to 1.1
  • Loading branch information
minrk committed Aug 24, 2013
1 parent c6be569 commit 3670ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/parallel/client/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ def imap(self, f, *sequences, **kwargs):
# Decorators
#-------------------------------------------------------------------

def remote(self, block=True, **flags):
def remote(self, block=None, **flags):
"""Decorator for making a RemoteFunction"""
block = self.block if block is None else block
return remote(self, block=block, **flags)
Expand Down Expand Up @@ -797,7 +797,7 @@ def __getitem__(self, key):
def __setitem__(self,key, value):
self.update({key:value})

def clear(self, targets=None, block=False):
def clear(self, targets=None, block=None):
"""Clear the remote namespaces on my engines."""
block = block if block is not None else self.block
targets = targets if targets is not None else self.targets
Expand Down

0 comments on commit 3670ae7

Please sign in to comment.