Lines Matching defs:interpolation

46     interpolation = configparser._UNSET
59 interpolation=self.interpolation,
772 "bar{equals}something %(with1)s interpolation (1 step)\n"
773 "bar9{equals}something %(with9)s lots of interpolation (9 steps)\n"
774 "bar10{equals}something %(with10)s lots of interpolation (10 steps)\n"
775 "bar11{equals}something %(with11)s lots of interpolation (11 steps)\n"
901 eq(cf.get("Foo", "bar"), "something with interpolation (1 step)")
903 "something with lots of interpolation (9 steps)")
905 "something with lots of interpolation (10 steps)")
907 if self.interpolation == configparser._UNSET:
909 "something %(with11)s lots of interpolation (11 steps)"))
910 elif isinstance(self.interpolation, configparser.LegacyInterpolation):
912 "something %(with11)s lots of interpolation (11 steps)"))
921 if self.interpolation == configparser._UNSET:
924 elif isinstance(self.interpolation, configparser.LegacyInterpolation):
943 if self.interpolation == configparser._UNSET:
945 elif isinstance(self.interpolation, configparser.LegacyInterpolation):
995 interpolation = None
1033 interpolation = configparser.LegacyInterpolation()
1058 configparser.ConfigParser(interpolation=value)
1107 "something %(with1)s interpolation (1 step)")
1109 "something %(with9)s lots of interpolation (9 steps)")
1111 "something %(with10)s lots of interpolation (10 steps)")
1113 "something %(with11)s lots of interpolation (11 steps)")
1179 interpolation = configparser.ExtendedInterpolation()
1326 [interpolation fail]
1335 cf['interpolation fail']['case1']
1337 cf['interpolation fail']['case2']
1339 cf['interpolation fail']['case3']
1341 cf['interpolation fail']['case4']
1343 cf['interpolation fail']['case5']
1345 cf['interpolation fail']['case6'] = "BLACK $ABBATH"
1368 'tricky interpolation',
1369 'more interpolation'])
1373 # no interpolation will happen
1385 self.assertEqual(cf.get('tricky interpolation', 'lets'), 'do this')
1386 self.assertEqual(cf.get('tricky interpolation', 'lets'),
1387 cf.get('tricky interpolation', 'go'))
1388 self.assertEqual(cf.get('more interpolation', 'lets'), 'go shopping')
1647 self.assertEqual(str(cm.exception), "bad interpolation variable "
1926 interpolation=configparser.ExtendedInterpolation())