Suppose that has period . Then by the division algorithm, we can write where are integers and . Then, following your original calculation,
First note that as was the period. This means that . But since , we must take (i.e. was the smallest nonzero number such that ). This means that , so the period must divide 10. So we can conclude that .