ncorbuk / SubZone

SubZone - Subdomains, Dns records, & more! || Python tutorial || Certificate authority abuse || Adavnced || Hacking/Info-Sec ||
MIT License
43 stars 12 forks source link

Reopening an open file? #7

Closed 42B closed 5 years ago

42B commented 5 years ago

https://github.com/ncorbuk/SubZone/blob/9609f13a4de4ba5253efa23f3f81756f0522cd91/subzone.py#L237-L245

The second context manager is opening the same file which hasn't been closed by the first one?

ncorbuk commented 5 years ago

yea one is write to write the contents of cmd = subprocess.call and the other is to read the file. Ive seen you issue above about this too and will sort it now

42B commented 5 years ago

Usually you would fix an issue before closing it?