Skip to content

Commit

Permalink
Fixed shadowing of replace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Revelle committed Jul 30, 2010
1 parent 29a34ac commit 165966e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/twitter.clj
@@ -1,8 +1,8 @@
(ns twitter
(:use [clojure.contrib.json :only [read-json]]
[clojure.string :only [replace]]
[clojure.contrib.java-utils :only [as-str]])
(:require [clojure.set :as set]
[clojure.string :as string]
[com.twinql.clojure.http :as http]
[twitter.query :as query]
[oauth.client :as oauth]
Expand Down Expand Up @@ -51,7 +51,7 @@ take any required and optional arguments and call the associated Twitter method.
rest-map# (apply hash-map rest#)
provided-optional-params# (set/intersection (set ~optional-params)
(set (keys rest-map#)))
query-param-names# (sort (map (fn [x#] (keyword (replace #"-" "_" (name x#))))
query-param-names# (sort (map (fn [x#] (keyword (string/replace #"-" "_" (name x#))))
(concat ~required-params provided-optional-params#)))
query-params# (apply hash-map (interleave query-param-names#
(vec (concat ~required-fn-params
Expand Down Expand Up @@ -385,7 +385,7 @@ take any required and optional arguments and call the associated Twitter method.
(fn
[x__2575__auto__]
(keyword
(replace
(string/replace
#"-"
"_"
(name
Expand Down

0 comments on commit 165966e

Please sign in to comment.