Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2bb39948
Commit
2bb39948
authored
Sep 16, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #19029: Change non-existing since 3.0 StringType to str.
parent
75eb5de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/tkinter/tix.py
Lib/tkinter/tix.py
+3
-3
No files found.
Lib/tkinter/tix.py
View file @
2bb39948
...
...
@@ -126,7 +126,7 @@ class tixCommand:
for
x
in
self
.
tk
.
split
(
self
.
tk
.
call
(
'tix'
,
'configure'
)):
cnf
[
x
[
0
][
1
:]]
=
(
x
[
0
][
1
:],)
+
x
[
1
:]
return
cnf
if
isinstance
(
cnf
,
StringType
):
if
isinstance
(
cnf
,
str
):
x
=
self
.
tk
.
split
(
self
.
tk
.
call
(
'tix'
,
'configure'
,
'-'
+
cnf
))
return
(
x
[
0
][
1
:],)
+
x
[
1
:]
return
self
.
tk
.
call
((
'tix'
,
'configure'
)
+
self
.
_options
(
cnf
))
...
...
@@ -388,9 +388,9 @@ class TixWidget(tkinter.Widget):
"""Set configuration options for all subwidgets (and self)."""
if
option
==
''
:
return
elif
not
isinstance
(
option
,
StringType
):
elif
not
isinstance
(
option
,
str
):
option
=
repr
(
option
)
if
not
isinstance
(
value
,
StringType
):
if
not
isinstance
(
value
,
str
):
value
=
repr
(
value
)
names
=
self
.
_subwidget_names
()
for
name
in
names
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment