Skip to content

Commit 6a9635b

Browse files
committed
Added _ to the name of some internal functions
This prevents them from being included in the documentation. No-op otherwise
1 parent fa40616 commit 6a9635b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

gnuplotlib.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ def is_gp():
10101010
processOptions.get('terminal') == 'gp' or \
10111011
is_gp()
10121012

1013-
def split_dict(d, *keysets):
1013+
def _split_dict(d, *keysets):
10141014
r'''Given a dict and some sets of keys, split into sub-dicts with keys
10151015
10161016
Can be used to split a combined plot/curve options dict into separate dicts.
@@ -1055,7 +1055,7 @@ def _get_cmds__setunset(cmds,options):
10551055
else:
10561056
cmds.append(setunset + ' ' + options[setunset])
10571057

1058-
def massageProcessOptionsAndGetCmds(processOptions):
1058+
def _massageProcessOptionsAndGetCmds(processOptions):
10591059
r'''Compute commands to set the given process options, and massage the input, as
10601060
needed
10611061
@@ -1112,7 +1112,7 @@ def massageProcessOptionsAndGetCmds(processOptions):
11121112
return cmds
11131113

11141114

1115-
def massageSubplotOptionsAndGetCmds(subplotOptions):
1115+
def _massageSubplotOptionsAndGetCmds(subplotOptions):
11161116
r'''Compute commands to set the given subplot options, and massage the input, as
11171117
needed
11181118
@@ -1259,12 +1259,12 @@ def __init__(self, **plotOptions):
12591259
plotOptions = _dictDeUnderscore(plotOptions)
12601260

12611261
self.curveOptions_base,self.subplotOptions_base,self.processOptions = \
1262-
split_dict(plotOptions,
1263-
(knownCurveOptions, 'curve'),
1264-
(knownSubplotOptions, 'subplot'),
1265-
(knownProcessOptions, 'process'))
1262+
_split_dict(plotOptions,
1263+
(knownCurveOptions, 'curve'),
1264+
(knownSubplotOptions, 'subplot'),
1265+
(knownProcessOptions, 'process'))
12661266

1267-
self.processOptionsCmds = massageProcessOptionsAndGetCmds(self.processOptions)
1267+
self.processOptionsCmds = _massageProcessOptionsAndGetCmds(self.processOptions)
12681268

12691269
if _data_dump_only(self.processOptions):
12701270
self.gnuplotProcess = None
@@ -2240,9 +2240,9 @@ def ingest_joint_options(jointOptions, subplotOptions_base, curveOptions_base):
22402240
# process options are only allowed in self.__init__(), so I'm not
22412241
# handling those here
22422242
curveOptions_here, subplotOptions_here = \
2243-
split_dict( jointOptions,
2244-
(knownCurveOptions, 'curve'),
2245-
(knownSubplotOptions, 'subplot'),)
2243+
_split_dict( jointOptions,
2244+
(knownCurveOptions, 'curve'),
2245+
(knownSubplotOptions, 'subplot'),)
22462246

22472247
subplotOptions = dict(subplotOptions_base)
22482248
subplotOptions.update(subplotOptions_here)
@@ -2261,7 +2261,7 @@ def make_subplot_data(subplotOptions_base,
22612261
subplotOptions_base,
22622262
curveOptions_base )
22632263

2264-
subplotOptionsCmds = massageSubplotOptionsAndGetCmds(subplotOptions)
2264+
subplotOptionsCmds = _massageSubplotOptionsAndGetCmds(subplotOptions)
22652265

22662266
curves = self._massageAndValidateArgs(curves,
22672267
curveOptions,

0 commit comments

Comments
 (0)