• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

RDFLib / rdflib / 564
91%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2015 04:45PM UTC
Jobs 4
Files 210
Run time 11min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
564

Pull #488

travis-ci

Joern Hees
Variable.__repr__ returns a python representation string, not n3

For other terms like `URIRef`, `Literal` and `BNodes` we return a
`repr` string that is a string representation of the term and allows
re-creating the object when passed to `eval`. Variable isn't that
consistent it seems:

```python
In [1]: import rdflib
INFO:rdflib:RDFLib Version: 4.2.1-dev

In [2]: eval(repr(rdflib.term.URIRef('foo')))
Out[2]: rdflib.term.URIRef(u'foo')

In [3]: eval(repr(rdflib.term.Variable('foo')))
  File "<string>", line 1
    ?foo
    ^
SyntaxError: invalid syntax
```

https://docs.python.org/2/library/functions.html#func-repr doesn't
really enforce this, but it's nice to have for debugging for example.

This commit returns a repr like `rdflib.term.Variable('foo')`.
Pull Request #488:

19727 of 31767 relevant lines covered (62.1%)

1.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 564.1 22 Jun 2015 04:48PM UTC 0
63.46
Travis Job 564.1
2 564.2 22 Jun 2015 04:45PM UTC 0
63.35
Travis Job 564.2
3 564.3 22 Jun 2015 04:52PM UTC 0
60.71
Travis Job 564.3
4 564.4 22 Jun 2015 04:56PM UTC 0
60.71
Travis Job 564.4
Source Files on build 564
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #564
  • Pull Request #488
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc