git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9ce86
)
cleanup
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 21 Apr 2011 20:18:16 +0000
(16:18 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Thu, 21 Apr 2011 20:18:16 +0000
(16:18 -0400)
sfa/rspecs/pg_rspec_converter.py
patch
|
blob
|
history
diff --git
a/sfa/rspecs/pg_rspec_converter.py
b/sfa/rspecs/pg_rspec_converter.py
index
bc63781
..
7ec6803
100755
(executable)
--- a/
sfa/rspecs/pg_rspec_converter.py
+++ b/
sfa/rspecs/pg_rspec_converter.py
@@
-1,7
+1,5
@@
#!/usr/bin/python
-from __future__ import with_statement
from lxml import etree
-from xmlbuilder import XMLBuilder
from StringIO import StringIO
from sfa.util.xrn import *
from sfa.rspecs.pg_rspec import PGRSpec
@@
-66,7
+64,7
@@
class PGRSpecConverter:
@staticmethod
def to_sfa_rspec(rspec):
- pg_rspec = PGRSpec(rspec)
+ pg_rspec = PGRSpec(rspec
=rspec
)
header = '<?xml version="1.0"?>\n'
xml = etree.Element("RSpec", type="SFA")
PGRSpecConverter.to_sfa_network(pg_rspec, xml)