Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 34435:5326e4ef1dab
style: never put multiple statements on one line
Differential Revision: https://phab.mercurial-scm.org/D905
author | Alex Gaynor <agaynor@mozilla.com> |
---|---|
date | Fri, 29 Sep 2017 15:49:20 +0000 |
parents | b76937fafe8a |
children | 192f7b126ed2 |
comparison
equal
deleted
inserted
replaced
34434:884b595f5195 | 34435:5326e4ef1dab |
---|---|
1603 for chunk in filechunkiter(ifp): | 1603 for chunk in filechunkiter(ifp): |
1604 ofp.write(chunk) | 1604 ofp.write(chunk) |
1605 ifp.close() | 1605 ifp.close() |
1606 ofp.close() | 1606 ofp.close() |
1607 except: # re-raises | 1607 except: # re-raises |
1608 try: os.unlink(temp) | 1608 try: |
1609 except OSError: pass | 1609 os.unlink(temp) |
1610 except OSError: | |
1611 pass | |
1610 raise | 1612 raise |
1611 return temp | 1613 return temp |
1612 | 1614 |
1613 class filestat(object): | 1615 class filestat(object): |
1614 """help to exactly detect change of a file | 1616 """help to exactly detect change of a file |