@@ -144,7 +144,7 @@ class ContentItem(Resource):
144144 def delete (self ) -> None :
145145 """Delete the content item."""
146146 path = f"v1/content/{ self .guid } "
147- url = urls . append ( self .config .url , path )
147+ url = self .config .url + path
148148 self .session .delete (url )
149149
150150 def deploy (self ) -> tasks .Task :
@@ -164,7 +164,7 @@ def deploy(self) -> tasks.Task:
164164 None
165165 """
166166 path = f"v1/content/{ self .guid } /deploy"
167- url = urls . append ( self .config .url , path )
167+ url = self .config .url + path
168168 response = self .session .post (url , json = {"bundle_id" : None })
169169 result = response .json ()
170170 ts = tasks .Tasks (self .config , self .session )
@@ -237,7 +237,7 @@ def restart(self) -> None:
237237 self .environment_variables .create (key , random_hash )
238238 self .environment_variables .delete (key )
239239 # GET via the base Connect URL to force create a new worker thread.
240- url = urls . append ( dirname (self .config .url ), f" content/{ self .guid } ")
240+ url = dirname (self .config .url ) + f"/ content/{ self .guid } "
241241 self .session .get (url )
242242 return None
243243 else :
@@ -314,7 +314,7 @@ def update(self, *args, **kwargs) -> None:
314314 def update (self , * args , ** kwargs ) -> None :
315315 """Update the content item."""
316316 body = dict (* args , ** kwargs )
317- url = urls . append ( self .config .url , f"v1/content/{ self .guid } " )
317+ url = self .config .url + f"v1/content/{ self .guid } "
318318 response = self .session .patch (url , json = body )
319319 super ().update (** response .json ())
320320
@@ -548,7 +548,7 @@ def __init__(
548548 * ,
549549 owner_guid : str | None = None ,
550550 ) -> None :
551- self .url = urls . append ( config .url , "v1/content" )
551+ self .url = config .url + "v1/content"
552552 self .config = config
553553 self .session = session
554554 self .owner_guid = owner_guid
@@ -656,7 +656,7 @@ def create(self, *args, **kwargs) -> ContentItem:
656656 """
657657 body = dict (* args , ** kwargs )
658658 path = "v1/content"
659- url = urls . append ( self .config .url , path )
659+ url = self .config .url + path
660660 response = self .session .post (url , json = body )
661661 return ContentItem (self .config , self .session , ** response .json ())
662662
@@ -798,6 +798,6 @@ def get(self, guid: str) -> ContentItem:
798798 -------
799799 ContentItem
800800 """
801- url = urls . append ( self .url , guid )
801+ url = self .url + guid
802802 response = self .session .get (url )
803803 return ContentItem (self .config , self .session , ** response .json ())
0 commit comments