Skip to content

Commit 74c0653

Browse files
authored
Fix undesired trailing newline characters
2 parents 41b52ff + ef88edd commit 74c0653

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

nets/3routers/ospf3r.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
if os.path.exists('.venv'):
1111
with open('.venv', 'r') as venv_file:
1212
# Get virtualenv path from .venv file
13-
venv_path = venv_file.read()
13+
# and remove trailing newline chars
14+
venv_path = venv_file.read().rstrip()
1415
# Get path of the activation script
1516
venv_path = os.path.join(venv_path, 'bin/activate_this.py')
1617
if not os.path.exists(venv_path):

nets/8r-1c-out-band-isis/isis8d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
if os.path.exists('.venv'):
1111
with open('.venv', 'r') as venv_file:
1212
# Get virtualenv path from .venv file
13-
venv_path = venv_file.read()
13+
# and remove trailing newline chars
14+
venv_path = venv_file.read().rstrip()
1415
# Get path of the activation script
1516
venv_path = os.path.join(venv_path, 'bin/activate_this.py')
1617
if not os.path.exists(venv_path):

nets/8r-1c-srv6-pm/isis8d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
if os.path.exists('.venv'):
1111
with open('.venv', 'r') as venv_file:
1212
# Get virtualenv path from .venv file
13-
venv_path = venv_file.read()
13+
# and remove trailing newline chars
14+
venv_path = venv_file.read().rstrip()
1415
# Get path of the activation script
1516
venv_path = os.path.join(venv_path, 'bin/activate_this.py')
1617
if not os.path.exists(venv_path):

nets/8routers-isis-ipv6/isis8d.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
if os.path.exists('.venv'):
1111
with open('.venv', 'r') as venv_file:
1212
# Get virtualenv path from .venv file
13-
venv_path = venv_file.read()
13+
# and remove trailing newline chars
14+
venv_path = venv_file.read().rstrip()
1415
# Get path of the activation script
1516
venv_path = os.path.join(venv_path, 'bin/activate_this.py')
1617
if not os.path.exists(venv_path):

nets/8routers/ospf8r.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
if os.path.exists('.venv'):
1111
with open('.venv', 'r') as venv_file:
1212
# Get virtualenv path from .venv file
13-
venv_path = venv_file.read()
13+
# and remove trailing newline chars
14+
venv_path = venv_file.read().rstrip()
1415
# Get path of the activation script
1516
venv_path = os.path.join(venv_path, 'bin/activate_this.py')
1617
if not os.path.exists(venv_path):

0 commit comments

Comments
 (0)