aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps/pybind11/remove_comments.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-06-22 12:01:43 +0200
committerAaron Rossetto <aaron.rossetto@ni.com>2021-06-23 07:14:12 -0500
commit0c5c2e39f9227825a4cd83a0df4efff25275e556 (patch)
tree00cf23305887dda1594f9b676e603e6275f08327 /host/lib/deps/pybind11/remove_comments.py
parenta9395823ed450aefa1c2d0c894dbcf976264365e (diff)
downloaduhd-0c5c2e39f9227825a4cd83a0df4efff25275e556.tar.gz
uhd-0c5c2e39f9227825a4cd83a0df4efff25275e556.tar.bz2
uhd-0c5c2e39f9227825a4cd83a0df4efff25275e556.zip
lib: deps: Upgrade vendor version of Pybind11 to 2.6.1
- Copied include/pybind11 directory over from source repo - Also re-ran remove_comments.py as before This fixes this warning on newer Python libraries: .../internals.h: 200:9: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations] PyEval_InitThreads(); ^ /usr/include/python3.9/ceval.h:130:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); ^ /usr/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED' #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) It also obviates the need for patches to Pybind11 to silence clang warnings.
Diffstat (limited to 'host/lib/deps/pybind11/remove_comments.py')
-rw-r--r--host/lib/deps/pybind11/remove_comments.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/host/lib/deps/pybind11/remove_comments.py b/host/lib/deps/pybind11/remove_comments.py
index 987c41e9d..1cc60ef35 100644
--- a/host/lib/deps/pybind11/remove_comments.py
+++ b/host/lib/deps/pybind11/remove_comments.py
@@ -34,9 +34,7 @@ def comment_remover(text):
def remove_trailing_whitespace(text):
""" Remove, uh, trailing whitespace. """
- pattern = re.compile(r' +$',
- re.DOTALL | re.MULTILINE
- )
+ pattern = re.compile(r' +$', re.DOTALL | re.MULTILINE)
return re.sub(pattern, '', text)