Commit b143b831 authored by Pierre Dittgen's avatar Pierre Dittgen

Clean warnings

parent 3553753e
......@@ -28,7 +28,6 @@ import argparse
import json
import os
import re
import subprocess
import sys
from collections import OrderedDict
from itertools import count, islice
......@@ -137,7 +136,7 @@ root_categories = [
),
]
source_filename_re = re.compile('AMECO(?P<number>\d+)\.TXT$')
source_filename_re = re.compile(r'AMECO(?P<number>\d+)\.TXT$')
def main():
......@@ -224,7 +223,7 @@ def main():
os.mkdir(dataset_dir)
else:
assert dataset_code == dataset_json['code'] or dataset_code == dataset_json['code'] + 'R' or \
re.match('{}-\d+$'.format(re.escape(dataset_code)), dataset_json['code']), \
re.match(r'{}-\d+$'.format(re.escape(dataset_code)), dataset_json['code']), \
'Dataset code {} differs from {} but titles are the same'.format(
dataset_code, dataset_json['code'])
dimensions_values_labels = dataset_json['dimensions_values_labels']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment