Re: [sqlalchemy] E901 TokenError: EOF in multi-line statement [SOLVED]

2015-07-25 Thread Rich Shepard

On Sat, 25 Jul 2015, Rich Shepard wrote:


   curr_value = = Column(Unicode(32), nullable = False)
   changed_by = = Column(Unicode(32), nullable = False)


  These were the problem.

Rich


[sqlalchemy] E901 TokenError: EOF in multi-line statement

2015-07-25 Thread Rich Shepard

  When running flake8 on the schema file the error, 'E901 TokenError: EOF in
multi-line statement' is reported for the line following the last line of
code at the end of the file. Web searches show that error means a missing
quote (' or ), ')', ']', or '}'. There are no missing closures in the last
two classes:

class ChangedData(Base):
__tablename__ = 'changedData'

change_id = Column(Integer, Sequence('change_seq'), primary_key = True)
which_table = Column(Unicode(32), nullable = False, unique = True)
which_attrib = Column(Uicode(32), nullable = False, unique = True)
when_changed = Column(Timestamp, nullable = False, unique = True)
curr_value = = Column(Unicode(32), nullable = False)
new_value =  Column(Unicode(32), nullable = False)
changed_by = = Column(Unicode(32), nullable = False)
reason = Column(Text)
__table_args__ = (UniqueConstraint(which_table, which_attrib,
when_changed))


class ReportCopies(Base):
__tablename__ = 'reportCopies'

rpt_nbr = Column(Integer, Sequence('rpt_seq'), primary_key = True)
tbl_name = Column(Unicode(16), nullable = False)
rpt_date = Column(Date, nullable = False)
rpt_desc = Column(Text, nullable = False)
rpt_filename = Column(BLOB, nullable = False)

  What might be causing this error that I'm not seeing?

Rich