Labour has rediscovered its soul under new leader Jeremy Corbyn, his shadow chancellor has said.
John McDonnell argued that the veteran left-winger, with his "simple message" of opposing austerity, had "rehabilitated the Labour Party" during his leadership campaign.
He contrasted Labour's approach with that of the Conservatives, who he said had come into government with the "intention of completely dismantling the welfare state".
The shadow chancellor spoke out as he addressed a fringe meeting of the Scottish Labour Party conference in Perth.
He said after May's general election defeat - which saw Labour all but wiped out north of the border - there had been a "loss of hope" among some members.
Mr McDonnell said: "There was absolute desolation and despair after we lost that election, but afterwards what is interesting is that despair did not continue on."
Halfway through the leadership contest, as support for Mr Corbyn grew, he said "we began to realise the earth had begun to move".
He said: "Some people who had been turned off or disillusioned, or just saw no hope in the party, suddenly saw some hope, that there was a vista for the future."
He added: "I think we have discovered our soul again, that's what we have done under Jeremy."
Mr McDonnell went on to tell the audience: "The attraction was simple - we had a very simple message, it was anti-austerity, it was we don't have to live like this, austerity is not am economic necessity, it is a political choice."
He hit out at the economic policies of the Tories, saying: "This Government came into power with an intention of completely dismantling the welfare state, a scorched-earth policy of withdrawing all those benefits and all those reforms that we had campaigned for and destroying everything we hold good in terms of developing and maintaining a civilised community."
Under Mr Corbyn's leadership he said Labour was "committed as an anti-austerity party" adding: "That means in Parliament we oppose every cut.
"Up until now there's been a debate: Do we vote against this or do we not? How are we positioning ourselves? Are we going to be seen as irresponsible in terms of the handling of the economy?
"Now we're straightforward, we're a socialist party, we're anti-austerity, we stand up against the cuts, we stand up for the vulnerable.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here