Also drop legacy code from bin/solaar
This commit is contained in:
parent
89d7490bf1
commit
a763be6839
|
@ -18,8 +18,6 @@
|
|||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
|
||||
def init_paths():
|
||||
"""Make the app work in the source tree."""
|
||||
|
@ -29,9 +27,6 @@ def init_paths():
|
|||
# Python 2 need conversion from utf-8 filenames
|
||||
# Python 3 might have problems converting back to UTF-8 in case of Unicode surrogates
|
||||
try:
|
||||
if sys.version_info < (3, ):
|
||||
decoded_path = sys.path[0].decode(sys.getfilesystemencoding())
|
||||
else:
|
||||
decoded_path = sys.path[0]
|
||||
sys.path[0].encode(sys.getfilesystemencoding())
|
||||
|
||||
|
|
Loading…
Reference in New Issue