update shared dependencies

This commit is contained in:
j 2016-02-23 11:36:55 +05:30
commit 736cd598a8
521 changed files with 45146 additions and 22574 deletions

View file

@ -1,7 +1,7 @@
# anum.py - functions for handling Hungarian VAT numbers
# coding: utf-8
#
# Copyright (C) 2012, 2013 Arthur de Jong
# Copyright (C) 2012-2015 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@ -47,7 +47,7 @@ def compact(number):
def checksum(number):
"""Calculate the checksum. Valid numbers should have a checksum of 0."""
weights = (9, 7, 3, 1, 9, 7, 3, 1)
return sum(weights[i] * int(n) for i, n in enumerate(number)) % 10
return sum(w * int(n) for w, n in zip(weights, number)) % 10
def validate(number):