- Timestamp:
- Dec 19, 2019, 6:26:30 AM (15 months ago)
- Branches:
- asyncio, master, proxy-ticket
- Children:
- 45b0a24
- Parents:
- 3be92d3
- git-author:
- Fiona Klute <fiona.klute@…> (12/19/19 05:28:55)
- git-committer:
- Fiona Klute <fiona.klute@…> (12/19/19 06:26:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/__init__.py
r3be92d3 rd5c572b 39 39 """ 40 40 if nolock: 41 yield 41 try: 42 yield None 43 finally: 44 pass 42 45 else: 43 46 with open(file, 'w') as lockfile: … … 46 49 fcntl.flock(lockfile, fcntl.LOCK_EX) 47 50 print(f'Got lock on {file}.', file=sys.stderr) 48 yield 51 yield lockfile 49 52 finally: 50 53 print(f'Unlocking {file}...', file=sys.stderr)
Note: See TracChangeset
for help on using the changeset viewer.