Browse Source

Merge branch 'develop' into radio-buttons

version-14
Suraj Shetty 4 years ago
committed by GitHub
parent
commit
2fef9fedd6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions
  1. +0
    -8
      frappe/utils/__init__.py

+ 0
- 8
frappe/utils/__init__.py View File

@@ -846,11 +846,3 @@ def groupby_metric(iterable: typing.Dict[str, list], key: str):
for item in items:
records.setdefault(item[key], {}).setdefault(category, []).append(item)
return records

def validate_url(url_string):
try:
result = urlparse(url_string)
return result.scheme and result.scheme in ["http", "https", "ftp", "ftps"]
except Exception:
return False


Loading…
Cancel
Save