mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
fix(binder): remove redundant subprocess imports causing scoping error
Remove redundant local subprocess imports that were causing 'cannot access local variable subprocess' error. subprocess is already imported globally at the top of the file.
This commit is contained in:
2
binder
2
binder
@@ -1796,7 +1796,6 @@ class BookBinder:
|
||||
open_choice = 'n'
|
||||
if open_choice in ['y', 'yes']:
|
||||
try:
|
||||
import subprocess
|
||||
import platform
|
||||
system = platform.system().lower()
|
||||
if system == "darwin": # macOS
|
||||
@@ -1836,7 +1835,6 @@ class BookBinder:
|
||||
|
||||
if action in ['e', 'edit']:
|
||||
try:
|
||||
import subprocess
|
||||
import platform
|
||||
system = platform.system().lower()
|
||||
if system == "darwin": # macOS
|
||||
|
||||
Reference in New Issue
Block a user