wherobots-python-dbapi 0.6.1__tar.gz → 0.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wherobots-python-dbapi
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: Python DB-API driver for Wherobots DB
5
5
  License: Apache 2.0
6
6
  Author: Maxime Petazzoni
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wherobots-python-dbapi"
3
- version = "0.6.1"
3
+ version = "0.6.2"
4
4
  description = "Python DB-API driver for Wherobots DB"
5
5
  authors = ["Maxime Petazzoni <max@wherobots.com>"]
6
6
  license = "Apache 2.0"
@@ -142,11 +142,6 @@ def http_to_ws(uri: str) -> str:
142
142
  return str(urllib.parse.urlunparse(parsed))
143
143
 
144
144
 
145
- def append_protocol(uri: str, protocol: str) -> str:
146
- """Appends the protocol version to the URI."""
147
- return urllib.parse.urljoin(os.path.join(uri, ""), protocol)
148
-
149
-
150
145
  def connect_direct(
151
146
  uri: str,
152
147
  headers: dict[str, str] = None,
@@ -156,7 +151,7 @@ def connect_direct(
156
151
  geometry_representation: Union[GeometryRepresentation, None] = None,
157
152
  ) -> Connection:
158
153
  q = queue.SimpleQueue()
159
- uri_with_protocol = append_protocol(uri, PROTOCOL_VERSION)
154
+ uri_with_protocol = f"{uri}/{PROTOCOL_VERSION}"
160
155
 
161
156
  def create_ws_connection():
162
157
  try: