mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-01-18 22:22:53 +00:00
Replace 'f = open()" with "with () as f" everywhere #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
33 occurrences, including the fairly nasty idiom
return HttpResponse(content=open(imagefile, "rb"), content_type=getmimetype(file))
which never does close the file handle ?
Find them with
cd troggle
grep -nir --exclude=".js" --exclude=".pyc" "=\s*open("|wc