30,36d29
< def makeDir(path):
< if os.path.exists(path):
< if not os.path.isdir(path):
< raise AttributeError, "%s exists but is not directory" % path
< else:
< os.mkdir(path)
<
56c49,55
< def __init__(self, filename, lineno):
---
> def __init__(self, filename, lineno, no_warning=False):
> if not isinstance(filename, basestring):
> raise AttributeError, \
> "filename must be a string, found '%s'" % (type(filename), )
> if not isinstance(lineno, (int, long)):
> raise AttributeError, \
> "filename must be an integer, found '%s'" % (type(lineno), )
58a58
> self.no_warning = no_warning
63a64,65
> if self.no_warning:
> return
75c77
< __all__ = [ 'makeDir', 'PairContainer', 'Location' ]
---
> __all__ = [ 'PairContainer', 'Location' ]