Browse Source

reset, no more compatibility with python < 3.5

olinox 8 năm trước cách đây
mục cha
commit
bbb202bdae
2 tập tin đã thay đổi với 1 bổ sung10 xóa
  1. 0 2
      .travis.yml
  2. 1 8
      pypog/geometry_objects.py

+ 0 - 2
.travis.yml

@@ -1,7 +1,5 @@
 language: python
 python:
-  - "3.3"
-  - "3.4"
   - "3.5"
   - "3.6"
   

+ 1 - 8
pypog/geometry_objects.py

@@ -3,14 +3,7 @@
 
     ** By Cro-Ki l@b, 2017 **
 '''
-from math import sqrt
-import math
-
-try:
-    inf = math.inf
-except ImportError:
-    # backward compatibility for python < 3.5
-    inf = float("inf")
+from math import sqrt, inf
 
 class BoundingRect(tuple):
     """ Bounding rectangle defined by a top-left (xmin, ymin) point