Changeset - 96b43734025f
[Not reviewed]
default
0 2 0
Mads Kiilerich (mads) - 6 years ago 2020-03-28 22:41:12
mads@kiilerich.com
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.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
scripts/shortlog.py
Show inline comments
 
@@ -9,7 +9,7 @@ import argparse
 
import os
 
from collections import Counter
 

	
 
from . import contributor_data
 
import contributor_data
 

	
 

	
 
def main():
scripts/update-copyrights.py
Show inline comments
 
@@ -42,7 +42,7 @@ import os
 
import re
 
from collections import defaultdict
 

	
 
from . import contributor_data
 
import contributor_data
 

	
 

	
 
def sortkey(x):
0 comments (0 inline, 0 general)