Skip to content

Commit b583a9c

Browse files
committed
doc: fix syntax of Sphinx Literal blocks
1 parent c21b3c3 commit b583a9c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/fill_mode.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ def pnetcdf_io(filename):
7777
old_fillmode = f.set_fill(pnetcdf.NC_FILL)
7878
if verbose:
7979
if old_fillmode == pnetcdf.NC_FILL:
80-
print("The old fill mode is NC_FILL\n")
80+
print("The old fill mode is NC_FILL")
8181
else:
82-
print("The old fill mode is NC_NOFILL\n")
82+
print("The old fill mode is NC_NOFILL")
8383

8484
# set the fill mode back to NC_NOFILL for the entire file
8585
f.set_fill(pnetcdf.NC_NOFILL)

src/pnetcdf/_File.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,8 @@ cdef class File:
10211021
10221022
# set the fill mode to NC_FILL for the entire file
10231023
old_fillmode = f.set_fill(pnetcdf.NC_FILL)
1024-
if verbose:
1025-
if old_fillmode == pnetcdf.NC_FILL:
1024+
1025+
if old_fillmode == pnetcdf.NC_FILL:
10261026
print("The old fill mode is NC_FILL")
10271027
else:
10281028
print("The old fill mode is NC_NOFILL")

0 commit comments

Comments
 (0)