Changeset 562aaf0 in osmose-backend


Ignore:
Timestamp:
Feb 8, 2014 3:22:42 PM (6 years ago)
Author:
Jocelyn Jaubert <jocelyn.jaubert@…>
Branches:
master
Children:
f919e54
Parents:
28caff3
Message:

Minor code cleaning to remove pyflakes warnings

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • analysers/Analyser_Osmosis.py

    r127d0c4 r562aaf0  
    2525import psycopg2.extras 
    2626import psycopg2.extensions 
    27 import string 
    2827from collections import defaultdict 
    29 from modules import OsmSax 
    3028from modules import OsmOsis 
    3129from modules import OsmoseErrorFile 
  • modules/OsmSax.py

    r2463821 r562aaf0  
    2020########################################################################### 
    2121 
    22 import re, bz2, xml, gzip, cStringIO 
     22import re, bz2, gzip, cStringIO 
    2323from xml.sax import make_parser, handler 
    2424from xml.sax.saxutils import XMLGenerator, quoteattr 
  • openstreetbugs/analyser_openstreetbugs.py

    rdf47d5f r562aaf0  
    2121########################################################################### 
    2222 
    23 import sys, commands, os, urllib, time, tempfile, bz2, popen2, urllib2 
     23import sys, urllib, time, popen2, urllib2 
    2424sys.path.append("..") 
    25 from modules import OsmSaxAlea, OsmSax, OsmoseLog 
     25from modules import OsmSax, OsmoseLog 
    2626 
    2727########################################################################### 
     
    7373    logger.log("update front-end") 
    7474    tmp_req = urllib2.Request(front_url) 
    75     tmp_dat = urllib.urlencode([('url', xml_url), ('code', front_code)]) 
     75    tmp_dat = urllib.urlencode([('url', xml_url), ('source', front_id), ('code', front_code)]) 
    7676    fd = urllib2.urlopen(tmp_req, tmp_dat) 
    7777    dt = fd.read().decode("utf8").strip() 
  • plugins/Administrative_TooManyWays.py

    r65aef2b r562aaf0  
    6262       n1   = { "ref": 1, "role": "xx", "type": "node"} 
    6363       assert self.p.relation(None, {"boundary": "administrative"}, [w1_0, w1_1]) 
     64       assert self.p.relation(None, {"boundary": "administrative"}, [w1_0, w1_1, w2, w3, n1]) 
    6465       assert not self.p.relation(None, {"boundary": "administrative"}, [w1_0, w2]) 
    6566       assert not self.p.relation(None, {"boundary": "administrative"}, [w1_0, n1]) 
Note: See TracChangeset for help on using the changeset viewer.