File tree Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Expand file tree Collapse file tree 3 files changed +4
-25
lines changed Original file line number Diff line number Diff line change 1
1
Changes
2
2
=======
3
3
4
+ Version 2.6.0
5
+
6
+ 1 . Drop utils.is_str function
7
+
4
8
Version 2.5.0
5
9
-------------
6
10
Original file line number Diff line number Diff line change 8
8
9
9
"""
10
10
11
- from .utils import is_str
12
11
from .utils import get_architecture
13
12
from .utils import loggers
14
13
from .utils import create_temp_file_name
Original file line number Diff line number Diff line change 7
7
8
8
import os
9
9
import sys
10
- import platform
11
10
import logging
12
11
import tempfile
13
12
import shutil
14
- import subprocess
15
13
import warnings
16
14
17
15
18
- def is_str (string ):
19
- """
20
- Python 2 and 3 compatible string checker.
21
-
22
- Args:
23
- string (str | basestring): the string to check
24
-
25
- Returns:
26
- bool: True or False
27
-
28
- """
29
- warnings .warn (
30
- "The is_str function is deprecated. \
31
- Use isinstance(string, str) instead." ,
32
- DeprecationWarning )
33
-
34
- if sys .version_info [:2 ] >= (3 , 0 ):
35
- return isinstance (string , str )
36
-
37
- return isinstance (string , basestring )
38
-
39
-
40
16
def find_xml_generator (name = "castxml" , search_path = None ):
41
17
"""
42
18
Try to find a c++ parser (xml generator)
You can’t perform that action at this time.
0 commit comments