##// END OF EJS Templates
small changes in response to pyflakes pass...
MinRK -
Show More
@@ -363,7 +363,7 b' class CommandLineConfigLoader(ConfigLoader):'
363 363 for sec,c in cfg.iteritems():
364 364 self.config[sec].update(c)
365 365 else:
366 raise ValueError("Invalid flag: '%s'"%raw)
366 raise TypeError("Invalid flag: %r" % cfg)
367 367
368 368 # raw --identifier=value pattern
369 369 # but *also* accept '-' as wordsep, for aliases
@@ -937,11 +937,6 b' Currently the magic system has the following functions:\\n"""'
937 937 vsize = var.size
938 938 vbytes = vsize*var.itemsize
939 939 vdtype = var.dtype
940 else:
941 # Numeric
942 vsize = Numeric.size(var)
943 vbytes = vsize*var.itemsize()
944 vdtype = var.typecode()
945 940
946 941 if vbytes < 100000:
947 942 print aformat % (vshape,vsize,vdtype,vbytes)
@@ -2321,7 +2316,7 b' Currently the magic system has the following functions:\\n"""'
2321 2316 try:
2322 2317 last_call[0] = self.shell.displayhook.prompt_count
2323 2318 if not opts_prev:
2324 last_call[1] = parameter_s
2319 last_call[1] = args
2325 2320 except:
2326 2321 pass
2327 2322
@@ -172,4 +172,4 b' class ClusterManager(LoggingConfigurable):'
172 172
173 173 def stop_all_clusters(self):
174 174 for p in self.profiles.keys():
175 self.stop_cluster(profile)
175 self.stop_cluster(p)
@@ -26,7 +26,7 b' try:'
26 26 except:
27 27 from IPython.utils.nested_context import nested
28 28
29 from IPython.core.error import TryNext
29 from IPython.core.error import TryNext, UsageError
30 30 from IPython.core.usage import interactive_usage, default_banner
31 31 from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC
32 32 from IPython.core.pylabtools import pylab_activate
@@ -512,7 +512,7 b' class TaskScheduler(SessionFactory):'
512 512 return False
513 513 if job.targets:
514 514 # check blacklist+targets for impossibility
515 job.targets.difference_update(blacklist)
515 job.targets.difference_update(job.blacklist)
516 516 if not job.targets or not job.targets.intersection(self.targets):
517 517 self.depending[msg_id] = job
518 518 self.fail_unreachable(msg_id)
@@ -21,7 +21,9 b' from IPython.parallel import Client'
21 21 from IPython.parallel.apps.launcher import (LocalProcessLauncher,
22 22 ipengine_cmd_argv,
23 23 ipcontroller_cmd_argv,
24 SIGKILL)
24 SIGKILL,
25 ProcessStateError,
26 )
25 27
26 28 # globals
27 29 launchers = []
@@ -191,10 +191,10 b' class PickleShareDB(collections.MutableMapping):'
191 191 return [self._normalized(p) for p in files if p.isfile()]
192 192
193 193 def __iter__(self):
194 return iter(keys)
194 return iter(self.keys())
195 195
196 196 def __len__(self):
197 return len(keys)
197 return len(self.keys())
198 198
199 199 def uncache(self,*items):
200 200 """ Removes all, or specified items from cache
@@ -24,6 +24,8 b' Authors:'
24 24 import sys
25 25 from unittest import TestCase
26 26
27 from nose import SkipTest
28
27 29 from IPython.utils.traitlets import (
28 30 HasTraits, MetaHasTraits, TraitType, Any, CBytes,
29 31 Int, Long, Integer, Float, Complex, Bytes, Unicode, TraitError,
@@ -59,7 +59,7 b' class ClientCompleter(object):'
59 59 # Give the kernel up to 0.5s to respond
60 60 for i in range(5):
61 61 ident,rep = self.session.recv(self.socket)
62 rep = Message(rep)
62 rep = session.Message(rep)
63 63 if rep is not None and rep.msg_type == 'complete_reply':
64 64 matches = rep.content.matches
65 65 break
@@ -18,6 +18,7 b' import zmq'
18 18 import session
19 19 import completer
20 20 from IPython.utils.localinterfaces import LOCALHOST
21 from IPython.zmq.session import Message
21 22
22 23 #-----------------------------------------------------------------------------
23 24 # Classes and functions
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now