Coder Social home page Coder Social logo

foaflib's People

Watchers

 avatar

foaflib's Issues

TabError: inconsistent use of tabs and spaces in indentation

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

Modify Graph to graph in imports


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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.