Package: faker / 0.7.7-2.1~deb9u1

0001-Correct-UnboundLocalError-in-Finnish-SSN-generator.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Brian May <bam@debian.org>
Date: Sun, 29 Jan 2017 08:56:28 +1100
Subject: Correct UnboundLocalError in Finnish SSN generator

Patch from https://github.com/joke2k/faker/pull/441
---
 faker/providers/ssn/fi_FI/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/faker/providers/ssn/fi_FI/__init__.py b/faker/providers/ssn/fi_FI/__init__.py
index 44d9ff3..bba2c0b 100644
--- a/faker/providers/ssn/fi_FI/__init__.py
+++ b/faker/providers/ssn/fi_FI/__init__.py
@@ -39,7 +39,7 @@ class Provider(SsnProvider):
         if birthday.year < 2000:
             separator = '-'
         else:
-            separator += 'A'
+            separator = 'A'
         suffix = str(random.randrange(2, 899)).zfill(3)
         checksum = _checksum(hetu_date + suffix)
         hetu = "".join([hetu_date, separator, suffix, checksum])