mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-20 12:34:23 -04:00
Fix imports for packaging.version
Should not use the entire version module, just the Version class import
This commit is contained in:
parent
1fb1a470df
commit
7f6f0b46bc
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ import tempfile
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from packaging import version as Version
|
from packaging.version import Version
|
||||||
|
|
||||||
|
|
||||||
class TorErrorAutomatic(Exception):
|
class TorErrorAutomatic(Exception):
|
||||||
|
@ -658,7 +658,7 @@ class Onion(object):
|
||||||
# Does this version of Tor support next-gen ('v3') onions?
|
# Does this version of Tor support next-gen ('v3') onions?
|
||||||
# Note, this is the version of Tor where this bug was fixed:
|
# Note, this is the version of Tor where this bug was fixed:
|
||||||
# https://trac.torproject.org/projects/tor/ticket/28619
|
# https://trac.torproject.org/projects/tor/ticket/28619
|
||||||
self.supports_v3_onions = self.tor_version >= Version("0.3.5.7")
|
self.supports_v3_onions = Version(self.tor_version) >= Version("0.3.5.7")
|
||||||
|
|
||||||
# Now that we are connected to Tor, if we are using built-in bridges,
|
# Now that we are connected to Tor, if we are using built-in bridges,
|
||||||
# update them with the latest copy available from the Tor API
|
# update them with the latest copy available from the Tor API
|
||||||
|
|
|
@ -22,7 +22,7 @@ from PySide6 import QtCore
|
||||||
import datetime
|
import datetime
|
||||||
import re
|
import re
|
||||||
import socks
|
import socks
|
||||||
from packaging import version as Version
|
from packaging.version import Version
|
||||||
|
|
||||||
from onionshare_cli.settings import Settings
|
from onionshare_cli.settings import Settings
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue