Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hisprofile authored Jun 13, 2024
1 parent 019cfbe commit fdf6aa9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions plumber/asset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ def _hashed(s: str) -> str:
:_B64_LEN
].decode("ascii")

def three(a):
counter = 0
pos = -1
for i in a:
if a == "/":
counter += 1
pos += 1
if counter == 3:
return pos
return None

def truncate_name(name: str, maxlen: int = 59) -> str:
name = name.replace("\\", "/").strip("/")
if len(name) <= maxlen:
Expand Down

0 comments on commit fdf6aa9

Please sign in to comment.