X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftransitions.py;h=a5eb6b6cd1e5338861b27cfb61e15a7644ca9d2d;hb=66d3252a4111a51b9c13db358c1d4d60f8563bf9;hp=9d21a562ce68db8d548dc09ad0e0fc7fb71838f0;hpb=27e00376e81d1c37ff327ee0d39670b266418869;p=dak.git diff --git a/dak/transitions.py b/dak/transitions.py index 9d21a562..a5eb6b6c 100755 --- a/dak/transitions.py +++ b/dak/transitions.py @@ -297,7 +297,7 @@ def write_transitions_from_file(from_file): else: trans = load_transitions(from_file) if trans is None: - raise TransitionsError, "Unparsable transitions file %s" % (file) + raise TransitionsError("Unparsable transitions file %s" % (file)) write_transitions(trans) ################################################################################ @@ -319,7 +319,7 @@ def temp_transitions_file(transitions): """ (fd, path) = tempfile.mkstemp("", "transitions", Cnf["Dir::TempPath"]) - os.chmod(path, 0644) + os.chmod(path, 0o644) f = open(path, "w") yaml.dump(transitions, f, default_flow_style=False) return path