lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 0.8.1-18-g4217c35

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

python-stdnum branch master updated. 0.8.1-18-g4217c35



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  4217c35a7488e6c6f8ccbe7720bf62c58460ed15 (commit)
      from  6c49ca83e2f1f1106bf0efbbd98d5046539556fb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/python-stdnum/commit/?id=4217c35a7488e6c6f8ccbe7720bf62c58460ed15

commit 4217c35a7488e6c6f8ccbe7720bf62c58460ed15
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Tue Dec 31 13:18:14 2013 +0100

    Add pragma: no cover for Python 3
    
    Some statements are not covered in Python 3 tests.

diff --git a/stdnum/isan.py b/stdnum/isan.py
index 12d4f66..bd956dd 100644
--- a/stdnum/isan.py
+++ b/stdnum/isan.py
@@ -142,7 +142,7 @@ def to_binary(number):
     number = compact(number, strip_check_digits=True)
     if sys.version > '3':  # pragma: no cover (Python 2/3 specific code)
         return bytes.fromhex(number)
-    else:
+    else:  # pragma: no cover (Python 2/3 specific code)
         return number.decode('hex')
 
 
diff --git a/stdnum/meid.py b/stdnum/meid.py
index cd203de..1f44b09 100644
--- a/stdnum/meid.py
+++ b/stdnum/meid.py
@@ -176,7 +176,7 @@ def to_binary(number):
     number = compact(number, strip_check_digit=True)
     if sys.version > '3':  # pragma: no cover (Python 2/3 specific code)
         return bytes.fromhex(number)
-    else:
+    else:  # pragma: no cover (Python 2/3 specific code)
         return number.decode('hex')
 
 
diff --git a/stdnum/util.py b/stdnum/util.py
index b0ac4a5..a832f42 100644
--- a/stdnum/util.py
+++ b/stdnum/util.py
@@ -44,7 +44,7 @@ def _mk_char_map(mapping):
         for char in key.split(','):
             try:
                 yield (unicodedata.lookup(char), value)
-            except KeyError:
+            except KeyError:  # pragma: no cover (does not happen on Python3)
                 pass
 
 

-----------------------------------------------------------------------

Summary of changes:
 stdnum/isan.py |    2 +-
 stdnum/meid.py |    2 +-
 stdnum/util.py |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits/