d = self.__defaults.copy()
d.update(sectdict)
# Update with the entry specific variables
- if vars:
+ if vars is not None:
d.update(vars)
option = self.optionxform(option)
try:
With no argument, disassemble the last traceback.
"""
- if not x:
+ if x is None:
distb()
return
if type(x) is types.InstanceType:
def distb(tb=None):
"""Disassemble a traceback (default: last traceback)."""
- if not tb:
+ if tb is None:
try:
tb = sys.last_traceback
except AttributeError:
fn = None
else:
fn = None
- if not fn:
+ if fn is None:
f = sys.stdin
else:
f = open(fn)
source = f.read()
- if fn:
+ if fn is not None:
f.close()
else:
fn = "<stdin>"