This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.toursgds.transport.protocol; | |
import org.apache.commons.lang3.time.StopWatch; | |
public class TestException { | |
private static class ObfuscationNotSetUpException extends RuntimeException {} | |
boolean configured = false; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yaml, os, sys, datetime | |
# slightly adapted from http://stackoverflow.com/a/44512 | |
def merge(d1, d2, merge_fn=lambda x,y:y): | |
result = dict(d1) | |
for k,v in d2.iteritems(): | |
if k in result: | |
if isinstance(result[k], dict): | |
print "going in for " + k |