Skip to content

Commit

Permalink
Variable Explorer: Fix a freeze when creating empty DataFrames on PY2
Browse files Browse the repository at this point in the history
Fixes #2744
  • Loading branch information
ccordoba12 committed Oct 6, 2015
1 parent fe57f55 commit a08279f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyderlib/widgets/dicteditorutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def value_to_display(value, truncate=False, trunc_len=80, minmax=False):
return '%s Mode: %s' % (address(value), value.mode)
if isinstance(value, DataFrame):
cols = value.columns
if PY2:
if PY2 and cols:
# Get rid of possible BOM utf-8 data present at the
# beginning of a file, which gets attached to the first
# column header when headers are present in the first
Expand Down

0 comments on commit a08279f

Please sign in to comment.