Skip to content

Commit 3623e94

Browse files
author
James Draper
committed
Changing 'bool' to bool and a few PEP8 tweaks
I realized that I changed 'QBool' to 'bool' when it probably should have been just bool.
1 parent 26cb990 commit 3623e94

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

qtpandas/__init__.py

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
# -*- coding: utf-8 -*-
2-
__import__('pkg_resources').declare_namespace(__name__)
3-
__version__ = '1.0.4'
4-
from qtpandas.models.DataFrameModel import DataFrameModel, read_file, read_sql
2+
3+
from qtpandas.models.DataFrameModel import (DataFrameModel,
4+
read_file,
5+
read_sql)
6+
57
from qtpandas.models.ColumnDtypeModel import ColumnDtypeModel
8+
69
from qtpandas.models.DataSearch import DataSearch
7-
from qtpandas.views.CSVDialogs import CSVExportDialog, CSVImportDialog
8-
from qtpandas.views.EditDialogs import AddAttributesDialog, RemoveAttributesDialog
10+
11+
from qtpandas.views.CSVDialogs import (CSVExportDialog,
12+
CSVImportDialog)
13+
14+
from qtpandas.views.EditDialogs import (AddAttributesDialog,
15+
RemoveAttributesDialog)
16+
17+
# __import__('pkg_resources').declare_namespace(__name__)
18+
19+
__version__ = '1.0.4'

qtpandas/views/CSVDialogs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def _initUI(self):
120120
layout.addWidget(self.otherSeparatorLineEdit)
121121
self.setLayout(layout)
122122

123-
@Slot('bool')
123+
@Slot(bool)
124124
def _enableLine(self, toggled):
125125
self.otherSeparatorLineEdit.setEnabled(toggled)
126126

@@ -142,7 +142,7 @@ def currentSelected(self):
142142
return
143143

144144

145-
@Slot('bool')
145+
@Slot(bool)
146146
def _delimiter(self, checked):
147147
if checked:
148148
if self.commaRadioButton.isChecked():
@@ -319,7 +319,7 @@ def _openFile(self):
319319
self._filenameLineEdit.setText(ret)
320320
self._updateFilename()
321321

322-
@Slot('bool')
322+
@Slot(bool)
323323
def _updateHeader(self, toggled):
324324
"""Changes the internal flag, whether the csv file contains a header or not.
325325
@@ -498,7 +498,7 @@ class CSVExportDialog(QtGui.QDialog):
498498
"""An widget to serialize a `DataFrameModel` to a `CSV-File`.
499499
500500
"""
501-
exported = Signal('bool')
501+
exported = Signal(bool)
502502

503503
def __init__(self, model=None, parent=None):
504504
super(CSVExportDialog, self).__init__(parent)

0 commit comments

Comments
 (0)