Browse Source

Adds five.int_types

Ask Solem 12 năm trước cách đây
mục cha
commit
7132053486
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      celery/five.py

+ 2 - 0
celery/five.py

@@ -43,6 +43,7 @@ if PY3:
     long_t = int
     text_t = str
     range = range
+    int_types = (int, )
 
     open_fqdn = 'builtins.open'
 
@@ -82,6 +83,7 @@ else:
     text_t = unicode
     long_t = long                   # noqa
     range = xrange
+    int_types = (int, long)
 
     open_fqdn = '__builtin__.open'