comparison scripts/shortlog.py @ 8308:96b43734025f

scripts: use plain import of contributor_data Relative import failed with: Traceback (most recent call last): File "scripts/update-copyrights.py", line 45, in <module> from . import contributor_data ImportError: attempted relative import with no known parent package Fixed by backing out changeset 2786730e56e0. The pytype problem can be solved differently.
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 28 Mar 2020 22:41:12 +0100
parents aa6f17a53b49
children
comparison
equal deleted inserted replaced
8307:e965ff6f8cb3 8308:96b43734025f
7 """ 7 """
8 import argparse 8 import argparse
9 import os 9 import os
10 from collections import Counter 10 from collections import Counter
11 11
12 from . import contributor_data 12 import contributor_data
13 13
14 14
15 def main(): 15 def main():
16 16
17 parser = argparse.ArgumentParser(description='Generate a list of committers and commit counts.') 17 parser = argparse.ArgumentParser(description='Generate a list of committers and commit counts.')