aboutsummaryrefslogtreecommitdiff
path: root/deps/cpp-httplib/split.py
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-27 13:45:54 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-27 13:45:54 +0200
commit51d779256c74cc541da306db5629ed510df5a944 (patch)
treeec23431d0b9b3dac2a2a8ac8f7201e9da9c58632 /deps/cpp-httplib/split.py
parentda307fb4c6b5028d50c09dec7265ce8715e035d5 (diff)
Switched from slow blocking cpp-httplib to libevent2.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'deps/cpp-httplib/split.py')
-rw-r--r--deps/cpp-httplib/split.py32
1 files changed, 0 insertions, 32 deletions
diff --git a/deps/cpp-httplib/split.py b/deps/cpp-httplib/split.py
deleted file mode 100644
index 3bd0121..0000000
--- a/deps/cpp-httplib/split.py
+++ /dev/null
@@ -1,32 +0,0 @@
-import os
-import sys
-
-border = '// ----------------------------------------------------------------------------'
-
-PythonVersion = sys.version_info[0];
-
-with open('httplib.h') as f:
- lines = f.readlines()
- inImplementation = False
-
- if PythonVersion < 3:
- os.makedirs('out')
- else:
- os.makedirs('out', exist_ok=True)
-
- with open('out/httplib.h', 'w') as fh:
- with open('out/httplib.cc', 'w') as fc:
- fc.write('#include "httplib.h"\n')
- fc.write('namespace httplib {\n')
- for line in lines:
- isBorderLine = border in line
- if isBorderLine:
- inImplementation = not inImplementation
- else:
- if inImplementation:
- fc.write(line.replace('inline ', ''))
- pass
- else:
- fh.write(line)
- pass
- fc.write('} // namespace httplib\n')