Explorar o código

Fix version check.

Gary van der Merwe %!s(int64=10) %!d(string=hai) anos
pai
achega
72e5a5682c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/tests/__init__.py

+ 1 - 1
dulwich/tests/__init__.py

@@ -29,7 +29,7 @@ import tempfile
 
 # If Python itself provides an exception, use that
 import unittest
-if sys.version < (2, 7):
+if sys.version_info < (2, 7):
     from unittest2 import SkipTest, TestCase as _TestCase
 else:
     from unittest import SkipTest, TestCase as _TestCase