def load_map_lookup(self):
        if not os.path.isfile(self.user_map_fname):
            msgx(self.user_map_fname % 'Error: user name file not found: %s')

        with open(self.user_map_fname, 'rU') as csvfile:
            map_reader = csv.reader(csvfile, delimiter=',')#, quotechar='|')
            row_num = 0
            for row in map_reader:
                row_num +=1
                if row_num == 1: continue       # skip header row
                if len(row) == 0: continue
                if row[0].startswith('#'): continue
                
                if len(row) ==2:
                    if row[1].strip():
                        self.map_lookup[row[0].strip()] = row[1].strip()

        msgt('User map loaded with %s names' % len(self.map_lookup))
        for k, v in self.map_lookup.items():
            msg('[%s] -> [%s]' % (k, v))
dataset/ETHPy150Open IQSS/redmine2github/src/github_issues/user_map_helper.py/UserMapHelper.load_map_lookup/swapped operands of `%`