changeset 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 e965ff6f8cb3
children 68bbfd164b23
files scripts/shortlog.py scripts/update-copyrights.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/shortlog.py	Thu Mar 26 18:12:52 2020 +0100
+++ b/scripts/shortlog.py	Sat Mar 28 22:41:12 2020 +0100
@@ -9,7 +9,7 @@
 import os
 from collections import Counter
 
-from . import contributor_data
+import contributor_data
 
 
 def main():
--- a/scripts/update-copyrights.py	Thu Mar 26 18:12:52 2020 +0100
+++ b/scripts/update-copyrights.py	Sat Mar 28 22:41:12 2020 +0100
@@ -42,7 +42,7 @@
 import re
 from collections import defaultdict
 
-from . import contributor_data
+import contributor_data
 
 
 def sortkey(x):