Catalysis of the reaction: L-proline + NAD(P)+ = 1-pyrroline-2-carboxylate + NAD(P)H + H+.
No description defined