tomerfiliba/plumbum — pull request #35 by tanzer (2012-10-08 10:14:58+00:00)
Title: Relax type checking of path arguments, part 2.

Fix more type checks of the form `isinstance(cmd, str)`:

- Replace some of them with checks like::

`not isinstance(cmd, RemotePath)`

- Replace others by checking against `basestring` instead of `str`.

Unfortunately, back in May, I didn't grep for other occurrences of these
checks. When testing version 1.0 of plumbum, I promptly got::

Traceback (most recent call last):
File "", line 1, in
File "plumbum/local_machine.py", line 531, in __getitem__
raise TypeError("cmd must be a LocalPath or a string: %r" % (cmd,))
TypeError: cmd must be a LocalPath or a string: u'dir'

Hoping that I fixed everything this time around :-).

Tomer, I'm sorry about reporting this just after 1.0, but could you possibly do a 1.0.1 to fix the remaining type checks?