lists.arthurdejong.org
RSS feed

python-stdnum commit: r24 - python-stdnum/stdnum

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum commit: r24 - python-stdnum/stdnum



Author: arthur
Date: Fri Aug 20 13:56:45 2010
New Revision: 24
URL: http://arthurdejong.org/viewvc/python-stdnum?view=rev&revision=24

Log:
fix typo

Modified:
   python-stdnum/stdnum/issn.py

Modified: python-stdnum/stdnum/issn.py
==============================================================================
--- python-stdnum/stdnum/issn.py        Fri Aug 20 11:37:09 2010        (r23)
+++ python-stdnum/stdnum/issn.py        Fri Aug 20 13:56:45 2010        (r24)
@@ -38,7 +38,7 @@
     return number
 
 def _calc_check_digit(number):
-    """Calculate the ISBN check digit for 10-digit numbers. The number passed
+    """Calculate the ISSN check digit for 10-digit numbers. The number passed
     should not have the check bit included."""
     check = (11 - sum( (8 - i) * int(number[i]) for i in range(len(number)) ) 
) % 11
     return 'X' if check == 10 else str(check)
--
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits