Skip to content

Commit

Permalink
gtkgui: Import urlib.parse instead of urllib
Browse files Browse the repository at this point in the history
Because:

    >>> import urllib
    >>> urllib.parse.unquote('file://test')
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    AttributeError: module 'urllib' has no attribute 'parse'
    >>> import urllib.parse
    >>> urllib.parse.unquote('file://test')
    'file://test'

Closes #109
  • Loading branch information
adrienverge committed Jun 11, 2024
1 parent db9c572 commit bfc921e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion photocollage/gtkgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import os.path
import random
import sys
import urllib
import urllib.parse

import cairo
import gi
Expand Down

0 comments on commit bfc921e

Please sign in to comment.