StatusCmd = "svn st -v --depth infinity --non-interactive"\r
contents = ShellCommandResults(StatusCmd, opts)\r
os.chdir(Cwd)\r
- if type(contents) is ListType:\r
+ if isinstance(contents, ListType):\r
for line in contents:\r
if line.startswith("M "):\r
Modified = True\r
InfoCmd = "svn info %s" % SrcPath.replace("\\", "/").strip()\r
Revision = 0\r
contents = ShellCommandResults(InfoCmd, opts)\r
- if type(contents) is IntType:\r
+ if isinstance(contents, IntType):\r
return 0, Modified\r
for line in contents:\r
line = line.strip()\r
VerCmd = "svn --version"\r
contents = ShellCommandResults(VerCmd, opts)\r
opts.silent = OriginalSilent\r
- if type(contents) is IntType:\r
+ if isinstance(contents, IntType):\r
if opts.verbose:\r
sys.stdout.write("SVN does not appear to be available.\n")\r
sys.stdout.flush()\r