Skip to content

Commit 556bc42

Browse files
authored
Merge pull request #212 from CastXML/version
utils: drop is_str
2 parents d616307 + 1ac3245 commit 556bc42

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changes
22
=======
33

4+
Version 2.6.0
5+
6+
1. Drop utils.is_str function
7+
48
Version 2.5.0
59
-------------
610

src/pygccxml/utils/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
99
"""
1010

11-
from .utils import is_str
1211
from .utils import get_architecture
1312
from .utils import loggers
1413
from .utils import create_temp_file_name

src/pygccxml/utils/utils.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,12 @@
77

88
import os
99
import sys
10-
import platform
1110
import logging
1211
import tempfile
1312
import shutil
14-
import subprocess
1513
import warnings
1614

1715

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-
4016
def find_xml_generator(name="castxml", search_path=None):
4117
"""
4218
Try to find a c++ parser (xml generator)

0 commit comments

Comments
 (0)