Skip to content

Commit

Permalink
Typo changes and removed print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
challurip committed May 4, 2017
1 parent 62040eb commit 05b12a2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/cylc-cat-log
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ def main():

viewfile = NamedTemporaryFile(
suffix='.' + os.path.basename(filename),
prefix=suite + '.', dir=cylc_tmpdiir
prefix=suite + '.', dir=cylc_tmpdir
)

for line in lines:
viewfile.write(line + '\n')
viewfile.seek(0, 0)
viewfile.seek(0, 0)

os.chmod(viewfile.name, 0400)

Expand Down Expand Up @@ -370,15 +370,14 @@ def main():

if modtime2 > modtime1:
print >> sys.stderr, (
'WARNING: YOU HAVE EDITED A TEMPORARY READ_ONLY COPY OF: ')
print >> sys.stderr, filename
else:
print >> sys.stderr, 'NO CHANGES MADE TO: %s' % viewfile.name
'WARNING: YOU HAVE EDITED A TEMPORARY READ_ONLY COPY : ')
print >> sys.stderr, viewfile.name

viewfile.close()

if ret_code == 0:
break

if ret_code and err:
sys.stderr.write(err)
sys.exit(ret_code)
Expand Down

0 comments on commit 05b12a2

Please sign in to comment.