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,6 +1,6 @@
# vat.py - functions for handling Maltese VAT numbers
#
# 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
@ -46,7 +46,7 @@ def compact(number):
def checksum(number):
"""Calculate the checksum."""
weights = (3, 4, 6, 7, 8, 9, 10, 1)
return sum(weights[i] * int(n) for i, n in enumerate(number)) % 37
return sum(w * int(n) for w, n in zip(weights, number)) % 37
def validate(number):