feat: add types

This commit is contained in:
relikd
2023-02-21 14:10:24 +01:00
parent 4d3af13996
commit 78ee345a2e
2 changed files with 277 additions and 237 deletions

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env python3
import os
import re
import sys
from base64 import b64decode
from pathlib import Path
@@ -25,14 +24,14 @@ with open(infile, 'r') as f:
c1 = 0
c2 = 0
name = ''
img = None
img = ''
collect = False
for line in f.readlines():
line = line.rstrip()
if line == 'BEGIN:VCARD':
c1 += 1
name = ''
img = None
img = ''
collect = False
elif line.startswith('FN:'):
name = line.split(':', 1)[1]