Skip to content

Commit c5c07eb

Browse files
SG-35761 first phase python2 removing (#10)
* six text type and import removed
1 parent 92434f3 commit c5c07eb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

python/create_sandbox/dialog.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
import datetime
1313
import os
1414
from sgtk.platform.qt import QtCore, QtGui
15-
from tank_vendor import six
15+
16+
try:
17+
from tank_vendor import sgutils
18+
except ImportError:
19+
from tank_vendor import six as sgutils
1620

1721
from .ui.dialog import Ui_Dialog
1822

@@ -90,7 +94,7 @@ def _process(self):
9094
"""
9195
Creates a new configuration
9296
"""
93-
path = six.ensure_str(self.ui.path.text())
97+
path = sgutils.ensure_str(self.ui.path.text())
9498

9599
# validate the name
96100
if self.ui.config_name.text() == "":

0 commit comments

Comments
 (0)