from uuid import UUID

from werkzeug.routing import BaseConverter


class UUIDConverter(BaseConverter):
    to_python = UUID
    to_url = str

from uuid import UUID

from werkzeug.routing import BaseConverter


class UUIDConverter(BaseConverter):
    to_python = UUID

    def to_url(self, obj):
        return str(obj).replace('-', '')

Drop dashes from download urls.
Drop dashes from download urls.

  from uuid import UUID
  
  from werkzeug.routing import BaseConverter
  
  
  class UUIDConverter(BaseConverter):
      to_python = UUID
-     to_url = str
  
+     def to_url(self, obj):
+         return str(obj).replace('-', '')
+ 
Drop dashes from download urls.
## Code Before:
from uuid import UUID

from werkzeug.routing import BaseConverter


class UUIDConverter(BaseConverter):
    to_python = UUID
    to_url = str

## Instruction:
Drop dashes from download urls.
## Code After:
from uuid import UUID

from werkzeug.routing import BaseConverter


class UUIDConverter(BaseConverter):
    to_python = UUID

    def to_url(self, obj):
        return str(obj).replace('-', '')
