Python .replace() Error
<p>In Python, I open a text file and read it line-by-line, and strip() the line before evaluating it.
When I evaluate the line, I have an if statement to check if the line is "random", and then puts a random number into a variable called genRandom. I have another line in my code that looks like this:</p>

<pre>thisLine.replace("genRANDOM",genRandom) #Replace genRANDOM with the random number</pre>

<p>On every line, it seems to work ok. In the input text file, I have a line that looks like this:</p>

<pre>-genRANDOM</pre>

<p>Whenever my script evaluates that line, I get this error:</p>

<pre><code>Traceback (most recent call last):
  File "D:\Mass Storage\pythonscripts\TurnByTurn\execute.py", line 37, in &lt;module&gt;
    thisLine.replace("genRANDOM",genRandom) #Replace genRANDOM with the random number
TypeError: expected a character buffer object
</code></pre>

<p>How can I fix this? Thanks in advance!</p>
