Exception chaining (PEP 3134, 'raise ... from') raises SyntaxErros in
Python 2.x. Comment the chaining out until SWC starts teaching only
Python 3.x.
try:
parsed_version.append(int(part))
except ValueError as e:
- raise NotImplementedError((version, part)) from e
+ raise NotImplementedError((version, part))# from e
return tuple(parsed_version)
raise DependencyError(
checker=self,
message="could not find '{0}' executable".format(command),
- ) from e
+ )# from e
stdout,stderr = p.communicate()
status = p.wait()
if status:
checker=self,
message="could not import the '{0}' package".format(
self.package),
- ) from e
+ )# from e
try:
version = package.__version__
except AttributeError: