pylint #4296 crash when pylint analyzes a python file with syntax errors [deprecated]

pylint (tip version) abcd.py where abcd.py contains:

print print

crashes with the following traceback:

************* Module abcd
E:  1: invalid syntax
Traceback (most recent call last):
  File "/Users/adim/local/bin/pylint", line 4, in <module>
    lint.Run(sys.argv[1:])
  File "/Users/adim/hg/pylint/lint.py", line 900, in __init__
    linter.check(args)
  File "/Users/adim/hg/pylint/lint.py", line 496, in check
    checker.close()
  File "/Users/adim/hg/pylint/lint.py", line 641, in close
    old_stats = config.load_results(self.base_name)
  File "/Users/adim/hg/pylint/config.py", line 56, in load_results
    data_file = get_pdata_path(base, 1)
  File "/Users/adim/hg/pylint/config.py", line 47, in get_pdata_path
    base_name = base_name.replace(os.sep, '_')
AttributeError: 'NoneType' object has no attribute 'replace'
priorityimportant
typebug
done in0.16.0
load0.000
load left0.000
closed by<not specified>