Skip to content

Commit 165966e

Browse files
author
Matt Revelle
committed
Fixed shadowing of replace.
1 parent 29a34ac commit 165966e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/twitter.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
(ns twitter
22
(:use [clojure.contrib.json :only [read-json]]
3-
[clojure.string :only [replace]]
43
[clojure.contrib.java-utils :only [as-str]])
54
(:require [clojure.set :as set]
5+
[clojure.string :as string]
66
[com.twinql.clojure.http :as http]
77
[twitter.query :as query]
88
[oauth.client :as oauth]
@@ -51,7 +51,7 @@ take any required and optional arguments and call the associated Twitter method.
5151
rest-map# (apply hash-map rest#)
5252
provided-optional-params# (set/intersection (set ~optional-params)
5353
(set (keys rest-map#)))
54-
query-param-names# (sort (map (fn [x#] (keyword (replace #"-" "_" (name x#))))
54+
query-param-names# (sort (map (fn [x#] (keyword (string/replace #"-" "_" (name x#))))
5555
(concat ~required-params provided-optional-params#)))
5656
query-params# (apply hash-map (interleave query-param-names#
5757
(vec (concat ~required-fn-params
@@ -385,7 +385,7 @@ take any required and optional arguments and call the associated Twitter method.
385385
(fn
386386
[x__2575__auto__]
387387
(keyword
388-
(replace
388+
(string/replace
389389
#"-"
390390
"_"
391391
(name

0 commit comments

Comments
 (0)