# HG changeset patch # User Mads Kiilerich # Date 2020-02-04 02:05:15 # Node ID 2786730e56e0acaf6424a9c94e343cc551604c23 # Parent a5e719bc7b40cf5f53fb00954b6a045c8f27cbc3 scripts: use explicit relative imports of contributor_data Avoid any ambiguity ... and avoid pytype failing to find scripts/contributor_data.py when scripts isn't in sys.path. diff --git a/scripts/shortlog.py b/scripts/shortlog.py --- a/scripts/shortlog.py +++ b/scripts/shortlog.py @@ -9,7 +9,7 @@ import argparse import os from collections import Counter -import contributor_data +from . import contributor_data def main(): diff --git a/scripts/update-copyrights.py b/scripts/update-copyrights.py --- a/scripts/update-copyrights.py +++ b/scripts/update-copyrights.py @@ -42,7 +42,7 @@ import os import re from collections import defaultdict -import contributor_data +from . import contributor_data def sortkey(x):