Skip to content

Commit

Permalink
flake8 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
drzraf committed Sep 17, 2023
1 parent 7cb7b3e commit 402ae19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@

current_path = os.path.dirname(os.path.realpath(__file__))


def get_testfile_path(name):
return os.path.join(current_path, 'test_tubeup_files', name)


class UtilsTest(unittest.TestCase):

def test_preserve_valid_identifiers(self):
Expand Down
4 changes: 2 additions & 2 deletions tubeup/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def strip_ip_from_url(url):
if u.query != '':
qs = parse_qs(u.query)
try:
del(qs['ip'])
del (qs['ip'])
u = u._replace(query=urlencode(qs, True))
except:
except KeyError:
pass
return u.geturl()

Expand Down

0 comments on commit 402ae19

Please sign in to comment.