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
 
@@ -6,13 +6,13 @@ Kallithea script for generating a quick 
 
commit counts in a given revision set.
 
"""
 
import argparse
 
import os
 
from collections import Counter
 

	
 
from . import contributor_data
 
import contributor_data
 

	
 

	
 
def main():
 

	
 
    parser = argparse.ArgumentParser(description='Generate a list of committers and commit counts.')
 
    parser.add_argument('revset',
scripts/update-copyrights.py
Show inline comments
 
@@ -39,13 +39,13 @@ contributor, the legal entity is given c
 
"""
 

	
 
import os
 
import re
 
from collections import defaultdict
 

	
 
from . import contributor_data
 
import contributor_data
 

	
 

	
 
def sortkey(x):
 
    """Return key for sorting contributors "fairly":
 
    * latest contribution
 
    * first contribution
0 comments (0 inline, 0 general)