Selva163 / augustus

Automatically exported from code.google.com/p/augustus
0 stars 0 forks source link

Use of type() built-in function #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Augustus 0.4.1.1.

Please provide any additional information below.
I was trying to run the auto example and the producer would not run because of 
the use of the type() built-in function in any_reader.pl. The usage occurs in 
the definition of open_source(). augustus.runlib.fileTree.path fails the type 
check because it is only a derived class of str, and as a result a file handle 
is not returned from the function. Perhaps basestring() should be used instead?

Original issue reported on code.google.com by knoa...@gmail.com on 16 Jun 2010 at 7:21

GoogleCodeExporter commented 8 years ago
Sorry -- should've suggested use of isinstance().

Original comment by knoa...@gmail.com on 16 Jun 2010 at 7:35

GoogleCodeExporter commented 8 years ago
I will look into this.

Parts of Augustus were just demonstrated and the highway example was one of the 
cases presented.  I know that with version 0.4.1.1, that works without any 
issues so you might want to play with that example for now.

Original comment by collinbe...@gmail.com on 16 Jun 2010 at 5:38

GoogleCodeExporter commented 8 years ago
There is a release scheduled for August, and I'd rather not push any bug fixes 
before then so that everything can be tested together.  I will try to get this 
and the last few reported bugs included in the release.

Original comment by collinbe...@gmail.com on 29 Jul 2010 at 2:33

GoogleCodeExporter commented 8 years ago
Issue 31 has been merged into this issue.

Original comment by RedWallK...@gmail.com on 19 Aug 2010 at 10:59

GoogleCodeExporter commented 8 years ago
The fix for this issue has been completed and will be included in the next 
release of Augustus

Original comment by RedWallK...@gmail.com on 19 Aug 2010 at 11:01

GoogleCodeExporter commented 8 years ago
will be moved into the trunk for the 0.4.2 release

Original comment by collinbe...@gmail.com on 29 Aug 2010 at 3:34

GoogleCodeExporter commented 8 years ago
This got fixed with augustus/runlib/any_reader.py at r264
The fix was moved in with other changes and I forgot to call it out 
individually.  The actual code change was:
  -    if type(self.source) != type(''):
  +    if not isinstance(self.source, str):

Original comment by collinbe...@gmail.com on 30 Aug 2010 at 7:53