Skip to content

Commit bc00a12

Browse files
committed
✏️ Fix formatting
1 parent a6193c0 commit bc00a12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/_sources/developer/deprecating.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To semiautomatically deprecate a published version of C-PAC, follow these steps:
2222
.. code:: Python
2323
2424
shutil.copyfile('/CRITICAL_ALERT.rst',
25-
os.path.join(log_dir, 'CRITICAL_ALERT.rst'))
25+
os.path.join(log_dir, 'CRITICAL_ALERT.rst'))
2626
2727
to |cpac_pipeline.py|_ after
2828

@@ -84,8 +84,9 @@ To semiautomatically deprecate a published version of C-PAC, follow these steps:
8484
.. code:: Python
8585
8686
with open('/CRITICAL_ALERT.rst', 'r') as critical_alert_file:
87-
critical_alert = critical_alert_file.read()
88-
87+
critical_alert = ''.join([line for line in
88+
critical_alert_file.readlines() if
89+
not line.startswith('.. ')])
8990
print(critical_alert)
9091
9192
#. From the ``deprecate`` subdirectory, run

0 commit comments

Comments
 (0)