lmaurits / foaflib Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/foaflib
License: Other
Automatically exported from code.google.com/p/foaflib
License: Other
Please check foaflib/classes/person.py. I get an indentation error on line 14
[Agent.__init__(self)].
Traceback (most recent call last):
File "./foaf.py", line 2, in <module>
from foaflib.classes.person import Person
File "<frozen importlib._bootstrap>", line 1567, in _find_and_load
File "<frozen importlib._bootstrap>", line 1534, in _find_and_load_unlocked
File "/usr/lib/python3.3/site-packages/foaflib-0.2-py3.3.egg/foaflib/classes/person.py", line 14
Agent.__init__(self)
^
TabError: inconsistent use of tabs and spaces in indentation
Original issue reported on code.google.com by [email protected]
on 6 Sep 2013 at 5:29
What version of the product are you using? On what operating system?
Ubuntu-12.10
Please provide any additional information below.
Index: trunk/foaflib/classes/agent.py
===================================================================
--- trunk/foaflib/classes/agent.py (revision 45)
+++ trunk/foaflib/classes/agent.py (working copy)
@@ -1,5 +1,5 @@
import rdflib
-from rdflib.Graph import ConjunctiveGraph as Graph
+from rdflib.graph import ConjunctiveGraph as Graph
from urllib import urlopen
from foaflib.classes.onlineaccount import OnlineAccount
Index: trunk/foaflib/classes/person.py
===================================================================
--- trunk/foaflib/classes/person.py (revision 45)
+++ trunk/foaflib/classes/person.py (working copy)
@@ -1,5 +1,5 @@
import rdflib
-from rdflib.Graph import ConjunctiveGraph as Graph
+from rdflib.graph import ConjunctiveGraph as Graph
from urllib import urlopen
from foaflib.classes.agent import Agent
@@ -148,5 +148,5 @@
def get_xml_string(self, format="rdf/xml"):
return self._graph.serialize(format=format)
- def save_as_xml_file(self, filename, format="rdf/xml"):
+ def save_as_xml_file(self, filename, format="xml"):
self._graph.serialize(filename, format=format)
Original issue reported on code.google.com by [email protected]
on 1 Nov 2012 at 9:41
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.