소스 검색

reset, no more compatibility with python < 3.5

olinox 8 년 전
부모
커밋
bbb202bdae
2개의 변경된 파일1개의 추가작업 그리고 10개의 파일을 삭제
  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