From 3012a08ff3ad46e933944d044cf62aa5a6b3ead8 Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Wed, 11 Nov 2015 17:01:52 +0100 Subject: [PATCH] Removed unused variable --- relational/parser.py | 2 -- relational/relation.py | 2 -- relational_gui/about.py | 1 - relational_gui/creator.py | 2 +- relational_gui/guihandler.py | 4 ++-- relational_gui/surveyForm.py | 2 +- 6 files changed, 4 insertions(+), 9 deletions(-) diff --git a/relational/parser.py b/relational/parser.py index e20915d..917fdb3 100644 --- a/relational/parser.py +++ b/relational/parser.py @@ -24,8 +24,6 @@ # # Language definition here: # http://ltworf.github.io/relational/grammar.html -import re - from relational import rtypes RELATION = 0 diff --git a/relational/relation.py b/relational/relation.py index dbedfcd..7606303 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -190,8 +190,6 @@ class Relation (object): For example if you want to rename a to b, call rel.rename({'a':'b'}) ''' - result = [] - newt = relation() newt.header = self.header.rename(params) diff --git a/relational_gui/about.py b/relational_gui/about.py index f06a405..5a51211 100644 --- a/relational_gui/about.py +++ b/relational_gui/about.py @@ -16,7 +16,6 @@ # # author Salvo "LtWorf" Tomaselli -import os from PyQt5 import QtCore, QtGui, QtWidgets try: # If QtWebKit is available, uses it diff --git a/relational_gui/creator.py b/relational_gui/creator.py index e527da0..26e95e8 100644 --- a/relational_gui/creator.py +++ b/relational_gui/creator.py @@ -16,7 +16,7 @@ # # author Salvo "LtWorf" Tomaselli -from PyQt5 import QtCore, QtGui, QtWidgets +from PyQt5 import QtGui, QtWidgets from relational_gui import rel_edit from relational import relation diff --git a/relational_gui/guihandler.py b/relational_gui/guihandler.py index 73a2141..ed235d3 100644 --- a/relational_gui/guihandler.py +++ b/relational_gui/guihandler.py @@ -17,9 +17,9 @@ # author Salvo "LtWorf" Tomaselli import sys -from PyQt5 import QtCore, QtWidgets, QtWidgets, QtGui +from PyQt5 import QtCore, QtWidgets, QtGui -from relational import relation, parser, optimizer, rtypes +from relational import parser, optimizer, rtypes from relational.maintenance import UserInterface from relational_gui import about diff --git a/relational_gui/surveyForm.py b/relational_gui/surveyForm.py index d5eddae..72c7ff9 100644 --- a/relational_gui/surveyForm.py +++ b/relational_gui/surveyForm.py @@ -19,7 +19,7 @@ import platform import locale -from PyQt5 import QtCore, QtGui, QtWidgets +from PyQt5 import QtWidgets from relational import maintenance