diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,24 @@ """ +============== PiPocketGeiger ------ +============== + Radiation Watch Pocket Geiger Type 5 library for Raspberry Pi. -Links -````` -* `code and documentation <https://github.com/MonsieurV/Pi...
Update pypi description and release new version
py
diff --git a/salt/state.py b/salt/state.py index <HASH>..<HASH> 100644 --- a/salt/state.py +++ b/salt/state.py @@ -576,7 +576,12 @@ class State(object): ''' Execute the aggregation systems to runtime modify the low chunk ''' - if self.functions['config.option']('mod_aggregate') and not...
Make mod_aggregate more flexible to configure
py
diff --git a/slither/tools/flattening/flattening.py b/slither/tools/flattening/flattening.py index <HASH>..<HASH> 100644 --- a/slither/tools/flattening/flattening.py +++ b/slither/tools/flattening/flattening.py @@ -151,12 +151,8 @@ class Flattening: if self._convert_library_to_internal and contract.is_library:...
Update slither/tools/flattening/flattening.py
py
diff --git a/tests/test_transports/test_periodic_transport.py b/tests/test_transports/test_periodic_transport.py index <HASH>..<HASH> 100644 --- a/tests/test_transports/test_periodic_transport.py +++ b/tests/test_transports/test_periodic_transport.py @@ -16,7 +16,7 @@ class DummyTransport(PeriodicTransportMixin): ...
Update timeout for threaded transport
py
diff --git a/buildbot_travis/travisyml.py b/buildbot_travis/travisyml.py index <HASH>..<HASH> 100644 --- a/buildbot_travis/travisyml.py +++ b/buildbot_travis/travisyml.py @@ -22,7 +22,10 @@ class TravisYml(object): self.branch_blacklist = None def parse(self, config_input): - self.config = safe_l...
Allow recreation of a TravisYml object from JSON data...
py
diff --git a/daemons/startstop/simple.py b/daemons/startstop/simple.py index <HASH>..<HASH> 100644 --- a/daemons/startstop/simple.py +++ b/daemons/startstop/simple.py @@ -16,6 +16,11 @@ from ..interfaces import startstop LOG = logging.getLogger(__name__) +SUCCESS_MSG = "an integer is required" + +if sys.version_in...
Python <I>'s os.kill() throws a TypeError with a different message than older Python versions
py
diff --git a/cwltool/update.py b/cwltool/update.py index <HASH>..<HASH> 100644 --- a/cwltool/update.py +++ b/cwltool/update.py @@ -17,6 +17,15 @@ def findId(doc, frg): return f return None +def fixType(doc): + if isinstance(doc, list): + return [fixType(f) for f in doc] + + if isins...
Tests pass for cwltool on both draft-2 and draft-3
py
diff --git a/distributions.py b/distributions.py index <HASH>..<HASH> 100644 --- a/distributions.py +++ b/distributions.py @@ -530,6 +530,8 @@ class DiagonalGaussian(GibbsSampling): betas_n = betas_0 + 1/2*sumsq + n*nus_0/(n+nus_0) * 1/2*(xbar - mu_0)**2 mu_n = (n*xbar + nus_0*mu_0)/(n+nus_0) ...
removed np.diag calls in DiagonalGaussian sumsq (bug fix)
py
diff --git a/keymaker/__init__.py b/keymaker/__init__.py index <HASH>..<HASH> 100644 --- a/keymaker/__init__.py +++ b/keymaker/__init__.py @@ -190,6 +190,7 @@ def get_uid(args): else: iam_resource = boto3.resource("iam") + args.user += config.get('keymaker_linux_user_suffix', default_iam_linux_user_s...
Fixup for get_uid with user suffix
py
diff --git a/vyper/builtin_interfaces/ERC20Detailed.py b/vyper/builtin_interfaces/ERC20Detailed.py index <HASH>..<HASH> 100644 --- a/vyper/builtin_interfaces/ERC20Detailed.py +++ b/vyper/builtin_interfaces/ERC20Detailed.py @@ -5,14 +5,17 @@ NOTE: interface uses `String[1]` where 1 is the lower bound of the string retur...
fix: add view modifier to ERC<I>Detailed signatures (#<I>)
py
diff --git a/bcbio/log/__init__.py b/bcbio/log/__init__.py index <HASH>..<HASH> 100644 --- a/bcbio/log/__init__.py +++ b/bcbio/log/__init__.py @@ -102,8 +102,9 @@ def create_base_logger(config=None, parallel=None): from bcbio.log import logbook_zmqpush ips = [ip for ip in socket.gethostbyname_ex(socke...
Logging: limit IP address socket connections Use socket connections for finding logging IP address as a backup only when gethostbyname does not resolve a valid non-local IP. Avoids issues on internet restricted systems where we can't access the network.
py
diff --git a/src/python/turicreate/test/test_object_detector.py b/src/python/turicreate/test/test_object_detector.py index <HASH>..<HASH> 100644 --- a/src/python/turicreate/test/test_object_detector.py +++ b/src/python/turicreate/test/test_object_detector.py @@ -323,12 +323,11 @@ class ObjectDetectorTest(unittest.TestC...
Changed test to be far less intensive. (#<I>)
py
diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py index <HASH>..<HASH> 100644 --- a/salt/returners/local_cache.py +++ b/salt/returners/local_cache.py @@ -294,9 +294,11 @@ def get_load(jid): if not os.path.exists(jid_dir) or not os.path.exists(load_fn): return {} serial = salt...
try to ensure that the ret is never None
py
diff --git a/tornado/httpclient.py b/tornado/httpclient.py index <HASH>..<HASH> 100644 --- a/tornado/httpclient.py +++ b/tornado/httpclient.py @@ -543,6 +543,8 @@ def _curl_setup_request(curl, request, buffer, headers): credentials = '%s:%s' % (request.proxy_username, request.proxy_pas...
Set proxy to '' if no proxy is explicitly set in the request. If this is not done, curls with proxies set are re-inserted into the empty list, and are then reused. This causes connections to be randomly proxied, if some requests use a proxy, and others don't.
py
diff --git a/tests/test_optimize.py b/tests/test_optimize.py index <HASH>..<HASH> 100644 --- a/tests/test_optimize.py +++ b/tests/test_optimize.py @@ -18,8 +18,13 @@ from pathlib import Path import pytest +import logging + +from PIL import Image from ocrmypdf import optimize as opt +from ocrmypdf.exec.ghostscrip...
Add test case to ensure mono is not inverted
py
diff --git a/cirq-core/cirq/ops/fsim_gate.py b/cirq-core/cirq/ops/fsim_gate.py index <HASH>..<HASH> 100644 --- a/cirq-core/cirq/ops/fsim_gate.py +++ b/cirq-core/cirq/ops/fsim_gate.py @@ -88,7 +88,7 @@ class FSimGate(gate_features.InterchangeableQubitsGate, raw_types.Gate): iSWAP gate. Maximum strength ...
Fix docstring for fsim gate (#<I>)
py
diff --git a/centinel/primitives/traceroute.py b/centinel/primitives/traceroute.py index <HASH>..<HASH> 100644 --- a/centinel/primitives/traceroute.py +++ b/centinel/primitives/traceroute.py @@ -12,7 +12,7 @@ import time from centinel import command -def traceroute(url, method="icmp", cmd_arguments=[]): +def trace...
traceroute should default to UDP (no privilege needed for UDP)
py
diff --git a/paypal/pro/creditcard.py b/paypal/pro/creditcard.py index <HASH>..<HASH> 100644 --- a/paypal/pro/creditcard.py +++ b/paypal/pro/creditcard.py @@ -50,6 +50,9 @@ class CreditCard(object): def is_test(self): """Returns True if number is a test card number.""" + # Note: test numbers cann...
Adding note about test credit cards in PP Pro sandbox.
py
diff --git a/i3pystatus/bitcoin.py b/i3pystatus/bitcoin.py index <HASH>..<HASH> 100644 --- a/i3pystatus/bitcoin.py +++ b/i3pystatus/bitcoin.py @@ -87,7 +87,7 @@ class Bitcoin(IntervalModule): if self._price_prev and fdict["last_price"] > self._price_prev: color = self.color_up fdict["...
Fix operator typo in price-comparison
py
diff --git a/ipyvolume/test_all.py b/ipyvolume/test_all.py index <HASH>..<HASH> 100644 --- a/ipyvolume/test_all.py +++ b/ipyvolume/test_all.py @@ -377,9 +377,9 @@ def test_embed(): p3.clear() x, y, z = np.random.random((3, 100)) p3.scatter(x, y, z) - p3.save("tmp/ipyolume_scatter_online.html", offline...
test embedding only with devmode (since unreleased dev version are not on unpkg)
py
diff --git a/hvac/adapters.py b/hvac/adapters.py index <HASH>..<HASH> 100644 --- a/hvac/adapters.py +++ b/hvac/adapters.py @@ -9,7 +9,7 @@ import requests import requests.exceptions from hvac import utils -from hvac.constants.client import * +from hvac.constants.client import DEFAULT_BASE_URI class Adapter(obj...
Move new cert-related logic out of adapters / constants
py
diff --git a/extension/setup.py b/extension/setup.py index <HASH>..<HASH> 100755 --- a/extension/setup.py +++ b/extension/setup.py @@ -57,7 +57,7 @@ setup(name='genepattern-notebook', 'Framework :: IPython', ], install_requires=[ - 'genepattern-python>=1.2.1', + 'genepattern-p...
Require latest (unreleased) version of genepattern-python for ODF DataFrame support
py
diff --git a/gpapi/googleplay.py b/gpapi/googleplay.py index <HASH>..<HASH> 100644 --- a/gpapi/googleplay.py +++ b/gpapi/googleplay.py @@ -335,7 +335,8 @@ class GooglePlayAPI(object): url = self.FDFE + path response = requests.get(url, headers=headers, verify=ssl_verif...
Added proxy config to userProfile request
py
diff --git a/measurement/measures/time.py b/measurement/measures/time.py index <HASH>..<HASH> 100644 --- a/measurement/measures/time.py +++ b/measurement/measures/time.py @@ -14,7 +14,7 @@ class Time(AbstractMeasure): functionality for handling intervals of time than this class provides. """ - second = U...
Update Time to modify Second as a Metric Unit Seconds are an SI unit, so they should allow metric prefixes.
py
diff --git a/indra/statements.py b/indra/statements.py index <HASH>..<HASH> 100644 --- a/indra/statements.py +++ b/indra/statements.py @@ -1079,9 +1079,16 @@ class Statement(object): self.belief = 1 self.uuid = '%s' % uuid.uuid4() + def matches_key(self): + raise NotImplementedError("Metho...
Add method to get a hash for statements.
py
diff --git a/spyder/plugins/editor/plugin.py b/spyder/plugins/editor/plugin.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/plugin.py +++ b/spyder/plugins/editor/plugin.py @@ -3471,6 +3471,12 @@ class Editor(SpyderPluginWidget, SpyderConfigurationObserver): self.editorwindows_to_be_c...
Editor: Refresh editorstack after files are opened from session or project
py
diff --git a/pySIR/pySIR.py b/pySIR/pySIR.py index <HASH>..<HASH> 100644 --- a/pySIR/pySIR.py +++ b/pySIR/pySIR.py @@ -77,9 +77,9 @@ class pySIR: r = self._make_call(endpoint, 'GET', params) return r - def put_variables_by_category_and_name(self, q_category, q_name, **params): + def put_variab...
variables neeeded for put_variables_by_category_and_name have been changed for consistency
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -38,7 +38,7 @@ with codecs.open(readme_md, encoding='utf-8') as f: long_description = f.read() -version = '0.2.8' +version = '0.2.9' class TestCommand(TestClass):
Increase version package to <I>
py
diff --git a/pebble/pool/channel.py b/pebble/pool/channel.py index <HASH>..<HASH> 100644 --- a/pebble/pool/channel.py +++ b/pebble/pool/channel.py @@ -185,4 +185,4 @@ class ChannelMutex: LOCK_TIMEOUT = 60 -READ_ONLY_EVENTMASK = select.POLLIN | select.POLLPRI | select.POLLHUP | select.POLLERR \ No newline at end of...
channel.py new line at end of file
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,9 +18,9 @@ setup( ], install_requires=[ "astor", - "coreir==2.0.*", + "coreir==2.0.6", "cosa", - "hwtypes==1.0.3" + "hwtypes==1.0.*" ], license='BSD License...
Try pinning coreir version
py
diff --git a/datacats/environment.py b/datacats/environment.py index <HASH>..<HASH> 100644 --- a/datacats/environment.py +++ b/datacats/environment.py @@ -74,7 +74,10 @@ class Environment(object): if not self.children: # get a list of all of the subdirectories. We'll call this the list ...
Make _load_children more resiliant to the fact that the datadir may not exist or may be corrupted
py
diff --git a/src/flapjack/encoders.py b/src/flapjack/encoders.py index <HASH>..<HASH> 100644 --- a/src/flapjack/encoders.py +++ b/src/flapjack/encoders.py @@ -47,6 +47,14 @@ class Json(transcoders.Json, Encoder): @classmethod def encode(cls, obj=None): + + # test if file + try: +# ...
the JSON encoder no longer chokes on binary files. base<I> is used.
py
diff --git a/skpy/util.py b/skpy/util.py index <HASH>..<HASH> 100644 --- a/skpy/util.py +++ b/skpy/util.py @@ -18,7 +18,7 @@ class SkypeUtils: Raw object containing emoticons and packs. """ - Status = SkypeEnum("SkypeUtils.Status", ("Offline", "Hidden", "Busy", "Idle", "Online")) + Status = Sk...
Add Away as a known status, independent of Idle As mentioned in comments of #<I>.
py
diff --git a/notedown/notedown.py b/notedown/notedown.py index <HASH>..<HASH> 100644 --- a/notedown/notedown.py +++ b/notedown/notedown.py @@ -402,7 +402,7 @@ class MarkdownWriter(NotebookWriter): """Turn the attribute dict into an attribute string for the code block. """ - if self.str...
convert un-executed notebooks
py
diff --git a/jsonrpcserver/dispatcher.py b/jsonrpcserver/dispatcher.py index <HASH>..<HASH> 100644 --- a/jsonrpcserver/dispatcher.py +++ b/jsonrpcserver/dispatcher.py @@ -108,6 +108,10 @@ def dispatch(handler): }) return flask.jsonify(response) else: + response_log.info('',...
Log responses even if there's no message body.
py
diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index <HASH>..<HASH> 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -143,10 +143,12 @@ class AssertionRewritingHook(importlib.abc.MetaPathFinder): exec(co, module.__dict__) def _earl...
minor: split doc with _early_rewrite_bailout
py
diff --git a/pcef/core/system.py b/pcef/core/system.py index <HASH>..<HASH> 100644 --- a/pcef/core/system.py +++ b/pcef/core/system.py @@ -166,30 +166,6 @@ class JobThread(QtCore.QThread): else: raise Exception("Executing not callable statement") - @property - def jobResults(self): - ...
JobRunner: remove singleton and jobResults (not needed)
py
diff --git a/pycbc/events/events.py b/pycbc/events/events.py index <HASH>..<HASH> 100644 --- a/pycbc/events/events.py +++ b/pycbc/events/events.py @@ -244,7 +244,7 @@ class EventManager(object): self.event_dtype.append( (column, coltype) ) self.events = numpy.array([], dtype=self.event_dtype) - ...
prime the pump (#<I>)
py
diff --git a/tcex/testing/test_case.py b/tcex/testing/test_case.py index <HASH>..<HASH> 100644 --- a/tcex/testing/test_case.py +++ b/tcex/testing/test_case.py @@ -281,9 +281,6 @@ class TestCase: def input_params(self): """Return install.json params in a dict with name param as key. - Args: - ...
+ removed populate exit message for service apps.
py
diff --git a/stacker/actions/build.py b/stacker/actions/build.py index <HASH>..<HASH> 100644 --- a/stacker/actions/build.py +++ b/stacker/actions/build.py @@ -27,8 +27,8 @@ def should_update(stack): """ if stack.locked: if not stack.force: - logger.info("Stack %s locked and not in --force ...
Make database locked output only debug This quiets regular output down to only showing the things that are going to be updated. After the first run we dump the plan, so you can see that things have been skipped because they are locked.
py
diff --git a/kafka_consumer/check.py b/kafka_consumer/check.py index <HASH>..<HASH> 100644 --- a/kafka_consumer/check.py +++ b/kafka_consumer/check.py @@ -107,7 +107,7 @@ class KafkaCheck(AgentCheck): for consumer_group, topics in consumer_groups.iteritems(): if topics is None: ...
[kafka_consumer] format missing consumer_group key.
py
diff --git a/afkak/brokerclient.py b/afkak/brokerclient.py index <HASH>..<HASH> 100644 --- a/afkak/brokerclient.py +++ b/afkak/brokerclient.py @@ -65,6 +65,9 @@ class KafkaBrokerClient(ReconnectingClientFactory): # What class protocol instances do we produce? protocol = KafkaProtocol + # Reduce log spam ...
Fix for BPSO-<I> - Afkak periodically logs ERROR on disconnect Kafka brokers will disconnect idle clients after <I> minutes of idleness, so we should not log clean disconnects at any higher than DEBUG level.
py
diff --git a/python/flatbuffers/builder.py b/python/flatbuffers/builder.py index <HASH>..<HASH> 100644 --- a/python/flatbuffers/builder.py +++ b/python/flatbuffers/builder.py @@ -93,7 +93,7 @@ class Builder(object): The internal buffer is grown as needed. """ - if not (0 <= initialSize < (2**...
2Gb buffer size checks fixed for Python Builder
py
diff --git a/gns3server/compute/builtin/nodes/cloud.py b/gns3server/compute/builtin/nodes/cloud.py index <HASH>..<HASH> 100644 --- a/gns3server/compute/builtin/nodes/cloud.py +++ b/gns3server/compute/builtin/nodes/cloud.py @@ -162,9 +162,6 @@ class Cloud(BaseNode): ...
Allows the creation of non-existent TAP interfaces when using the cloud.
py
diff --git a/term2048/game.py b/term2048/game.py index <HASH>..<HASH> 100644 --- a/term2048/game.py +++ b/term2048/game.py @@ -6,19 +6,11 @@ import os.path import math from colorama import init, Fore, Style +init(autoreset=True) from term2048 import keypress from term2048.board import Board -# PY3 compat -try...
using 'range' instead of 'xrange' in game.py Since we're using it only once and on a small range, it's cleaner to do that than keeping the try/except hack to use the good function depending of Python version and testing it.
py
diff --git a/woven/linux.py b/woven/linux.py index <HASH>..<HASH> 100644 --- a/woven/linux.py +++ b/woven/linux.py @@ -543,10 +543,11 @@ def upload_etc(): context = {'host_ip':socket.gethostbyname(env.host)} for t in etc_templates: dest = t.replace('woven','',1) - directory = os.path.split(des...
make deploying etc templates a little more fine grained
py
diff --git a/djstripe/models/base.py b/djstripe/models/base.py index <HASH>..<HASH> 100644 --- a/djstripe/models/base.py +++ b/djstripe/models/base.py @@ -263,7 +263,7 @@ class StripeModel(StripeBaseModel): return data @classmethod - def _find_owner_account(cls, data): + def _find_owner_account(cl...
The djstripe_owner_account model field will get populated for all models The root cause was that it was assumed the STRIPE API still returned the api_key in its json which no longer happens. Hence Updated the default api_key from "" to the default_api_key retreived from the STRIPE_SECRET_KEY.
py
diff --git a/symbols/number.py b/symbols/number.py index <HASH>..<HASH> 100644 --- a/symbols/number.py +++ b/symbols/number.py @@ -9,10 +9,13 @@ # the GNU General License # ---------------------------------------------------------------------- +import numbers + from api.constants import TYPE fr...
- Number type is encapsulated in a typeref - Assertion checking upon instantiation - __cmp__ method implemented to allow direct number comparison.
py
diff --git a/telemetry/telemetry/page/page_measurement_unittest.py b/telemetry/telemetry/page/page_measurement_unittest.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/page/page_measurement_unittest.py +++ b/telemetry/telemetry/page/page_measurement_unittest.py @@ -63,7 +63,8 @@ class PageMeasurementUnitTest( ...
Disable PageMeasurementUnitTest.testGotQueryParams as it is failing. TBR=<EMAIL> NOTRY=true BUG=<I> Review URL: <URL>
py
diff --git a/ReText/window.py b/ReText/window.py index <HASH>..<HASH> 100644 --- a/ReText/window.py +++ b/ReText/window.py @@ -415,11 +415,11 @@ class ReTextWindow(QMainWindow): return markupClass(filename=fileName) def docTypeChanged(self): - self.markups[self.ind] = self.getMarkup() oldType = self.highli...
docTypeChanged: create new markup object only if the class really changed
py
diff --git a/pypiper/ngstk.py b/pypiper/ngstk.py index <HASH>..<HASH> 100755 --- a/pypiper/ngstk.py +++ b/pypiper/ngstk.py @@ -1525,7 +1525,7 @@ class NGSTk(_AttributeDict): cmd += " -c {0}".format(control_bams if type(control_bams) is str else " ".join(control_bams)) if paired: - cmd...
Update ngstk.py bug: a single space was forgotten before -f option in cmd (line <I>)
py
diff --git a/misc/watcher.py b/misc/watcher.py index <HASH>..<HASH> 100644 --- a/misc/watcher.py +++ b/misc/watcher.py @@ -45,7 +45,7 @@ OCR_JSON_SETTINGS = json.loads(os.getenv('OCR_JSON_SETTINGS', '{}')) POLL_NEW_FILE_SECONDS = int(os.getenv('OCR_POLL_NEW_FILE_SECONDS', '1')) USE_POLLING = bool(os.getenv('OCR_USE_P...
watcher: include uppercase .PDF too
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ class PyTest(TestCommand): -readme = open('README.txt', 'rb').read() +readme = open('README.txt', 'r').read() setup(name = 'OWSLib', version = owslib.__version__, @@ -26,9 +26,9 @@...
Fix Python 3 bytes/str bug and update maintainer. open('README.txt', 'rb').read() returns type 'bytes' in Python 3, which distutils can't use.
py
diff --git a/pgmpy/readwrite/ProbModelXML.py b/pgmpy/readwrite/ProbModelXML.py index <HASH>..<HASH> 100644 --- a/pgmpy/readwrite/ProbModelXML.py +++ b/pgmpy/readwrite/ProbModelXML.py @@ -1,7 +1,4 @@ """ -ProbModelXML: http://leo.ugr.es/pgm2012/submissions/pgm2012_submission_43.pdf -ProbModelXML: http://www.cisiad.uned...
added references to __init__'s docstring
py
diff --git a/napalm_base/validate.py b/napalm_base/validate.py index <HASH>..<HASH> 100644 --- a/napalm_base/validate.py +++ b/napalm_base/validate.py @@ -153,9 +153,10 @@ def empty_tree(input_list): return True -def compliance_report(cls, validation_file=None): +def compliance_report(cls, validation_file=None...
Validate using python object Having the validation format in a single place makes the validation constrained by placing the content only on a single file, on the local disk. There are many applicabilities where we need to test with remote content, or any other source. This is making the validator more flexible
py
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -1122,7 +1122,7 @@ class Client: def forward_messages(self, chat_id: int or str, from_chat_id: int or...
Allow passing msg ids as int in forward_messages()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,14 @@ import re +import io from setuptools import setup, find_packages +open_as_utf = lambda x: io.open(x, encoding='utf-8') + (__version__, ) = re.findall("__version__.*\s*=\s*[']([^']+)[']", ...
Fixed setup.py to open readme/history files as utf-8
py
diff --git a/src/xworkflows/base.py b/src/xworkflows/base.py index <HASH>..<HASH> 100644 --- a/src/xworkflows/base.py +++ b/src/xworkflows/base.py @@ -664,7 +664,9 @@ class ImplementationList(object): if self.should_collect(value): transition = self.workflow.transitions[value.trname] - ...
Don't warn when overriding an implementation with the same name.
py
diff --git a/taxi/app.py b/taxi/app.py index <HASH>..<HASH> 100755 --- a/taxi/app.py +++ b/taxi/app.py @@ -305,7 +305,12 @@ def commit(options, args): def _prefill(file, direction): parser = get_parser(file) - cur_date = max([date for (date, entries) in parser.get_entries()]) + entries = parser.get_entrie...
Make the edit command not to crash when no entries
py
diff --git a/spillway/models.py b/spillway/models.py index <HASH>..<HASH> 100644 --- a/spillway/models.py +++ b/spillway/models.py @@ -47,7 +47,7 @@ class AbstractRasterStore(models.Model): abstract = True def __unicode__(self): - return self.image.name + return unicode(self.image) ...
Cannot rely on presence of name attr in case of ndarray type
py
diff --git a/pytestsalt/fixtures/config.py b/pytestsalt/fixtures/config.py index <HASH>..<HASH> 100644 --- a/pytestsalt/fixtures/config.py +++ b/pytestsalt/fixtures/config.py @@ -216,6 +216,7 @@ def _master_config(root_dir, 'open_mode': True, 'syndic_master': 'localhost', 'fileserver_list_cac...
roots is the default fileserver backend
py
diff --git a/verisure/session.py b/verisure/session.py index <HASH>..<HASH> 100644 --- a/verisure/session.py +++ b/verisure/session.py @@ -88,7 +88,7 @@ class Session(object): self._get_installations() return except Exception: - self._cookies = None + sel...
handle non-existing or corrupt cookie file
py
diff --git a/chassis/util/params.py b/chassis/util/params.py index <HASH>..<HASH> 100644 --- a/chassis/util/params.py +++ b/chassis/util/params.py @@ -78,7 +78,7 @@ def parse(parameters): try: kwargs[key] = _apply_validator_chain( properties.get...
Fix exception catching for Py3K
py
diff --git a/waitinglist/views.py b/waitinglist/views.py index <HASH>..<HASH> 100644 --- a/waitinglist/views.py +++ b/waitinglist/views.py @@ -1,6 +1,5 @@ from django.core.urlresolvers import reverse from django.http import Http404 -from django.template import RequestContext from django.shortcuts import render, redi...
Fix missing import bug by using render instead of render_to_response
py
diff --git a/creamas/ds.py b/creamas/ds.py index <HASH>..<HASH> 100644 --- a/creamas/ds.py +++ b/creamas/ds.py @@ -59,6 +59,7 @@ def ssh_exec_in_new_loop(server, cmd): ret = loop.run_until_complete(task) return ret + class DistributedEnvironment(): '''Distributed environment which manages several node...
Ensuring flake8 compatability
py
diff --git a/submit50.py b/submit50.py index <HASH>..<HASH> 100755 --- a/submit50.py +++ b/submit50.py @@ -461,13 +461,21 @@ def submit(org, branch): # authenticate user via SSH try: + + # require ssh assert which("ssh") + + # require GitHub username in ~/.gitconfig username,...
checking for ssh-agent
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -61,6 +61,9 @@ setup(name='cwltool', 'typing >= 3.5.3', 'six >= 1.8.0', ], + extras_require = { + 'deps': ["galaxy-lib >= 17.09.1"] + }, setup_requires=[] + pytest_runner...
galaxy-lib as a setup.py plugin
py
diff --git a/python/jsbeautifier/javascript/beautifier.py b/python/jsbeautifier/javascript/beautifier.py index <HASH>..<HASH> 100644 --- a/python/jsbeautifier/javascript/beautifier.py +++ b/python/jsbeautifier/javascript/beautifier.py @@ -1187,9 +1187,9 @@ class Beautifier: if ( current_token.text...
Fix error in Azure DevOps. Refactor code for Linux and MacOS
py
diff --git a/test/test_reader.py b/test/test_reader.py index <HASH>..<HASH> 100644 --- a/test/test_reader.py +++ b/test/test_reader.py @@ -104,7 +104,7 @@ class TestReader(unittest.TestCase, TestResultDataModel): new_nidmres = NIDMResults(nidm_zip=new_name) - self.compare_full_graphs(nidmres...
Do not reconcile for test on read/write loop
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,4 +20,5 @@ setup(name = "artist", 'Topic :: Education', 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)'], install_requires = ['jinja2', 'numpy'], + pac...
Fix: include templates in source distribution Thanks to Niek for finding this and Arne for reporting. Fixes #7.
py
diff --git a/tests/scripts/thread-cert/node_cli.py b/tests/scripts/thread-cert/node_cli.py index <HASH>..<HASH> 100644 --- a/tests/scripts/thread-cert/node_cli.py +++ b/tests/scripts/thread-cert/node_cli.py @@ -64,6 +64,8 @@ class otCli: else: self.pexpect.logfile_read = sys.stdout.buffer ...
[test] fix unclosed file (#<I>) This commit fixes python warning "ResourceWarning: unclosed file" when set pexpect to None.
py
diff --git a/tests/test_numpy.py b/tests/test_numpy.py index <HASH>..<HASH> 100644 --- a/tests/test_numpy.py +++ b/tests/test_numpy.py @@ -137,6 +137,13 @@ def test_sum_3(): check_grads(fun, mat) check_grads(d_fun, mat) +def test_sum_with_axis_tuple(): + def fun(x): return to_scalar(np.sum(x, axis=(1,2))...
add test for np.sum axis tuple support
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,8 @@ setup(name='django-datatable-view', ' with (http://datatables.net/plug-ins/api). The package consists of ' 'a class-based view, and a small collection of utilities for rend...
Poke updated info into setup.py
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,7 +5,8 @@ def pytest_configure(): DEBUG_PROPAGATE_EXCEPTIONS=True, DATABASES={ 'default': { - 'ENGINE': 'django.db.backends.sqlite3' + ...
Add name to DATABASES setting
py
diff --git a/ryu/services/protocols/bgp/speaker.py b/ryu/services/protocols/bgp/speaker.py index <HASH>..<HASH> 100644 --- a/ryu/services/protocols/bgp/speaker.py +++ b/ryu/services/protocols/bgp/speaker.py @@ -376,6 +376,8 @@ class BgpProtocol(Protocol, Activity): self._sendlock.acquire() try: ...
bgp: catch socket error with sendall
py
diff --git a/glitter/tests/settings.py b/glitter/tests/settings.py index <HASH>..<HASH> 100644 --- a/glitter/tests/settings.py +++ b/glitter/tests/settings.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +from __future__ import unicode_literals import os @@ -55,6 +56,7 @@ INSTALLED_APPS = ( 'glitter', 'glitt...
Add redactor block in test settings file
py
diff --git a/py/test/testing/acceptance_test.py b/py/test/testing/acceptance_test.py index <HASH>..<HASH> 100644 --- a/py/test/testing/acceptance_test.py +++ b/py/test/testing/acceptance_test.py @@ -211,7 +211,7 @@ class TestPyTest(AcceptBase): """) result = self.runpytest(p1) assert_lines_co...
[svn r<I>] bah, forgot that helper uses fnmatch-style matching, not regular expression --HG-- branch : trunk
py
diff --git a/pyethereum/apiserver.py b/pyethereum/apiserver.py index <HASH>..<HASH> 100644 --- a/pyethereum/apiserver.py +++ b/pyethereum/apiserver.py @@ -210,21 +210,20 @@ def trace(txhash): test_blk.state.root_hash = pre_state # collect debug output - tl = TraceLogHandler() - tl.setLevel(logging.DEB...
use new logging in apiserver/trace
py
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/ec2.py +++ b/salt/cloud/clouds/ec2.py @@ -2605,6 +2605,10 @@ def _get_node(name=None, instance_id=None, location=None): location = get_location() params = {'Action': 'DescribeInstances'} ...
Properly handle unnamed/untagged instances
py
diff --git a/tests/func/test_add.py b/tests/func/test_add.py index <HASH>..<HASH> 100644 --- a/tests/func/test_add.py +++ b/tests/func/test_add.py @@ -96,7 +96,7 @@ class TestAddCmdDirectoryRecursive(TestDvc): warning = ( "You are adding a large directory 'large-dir' recursively," " c...
tests: fix failing test_add (due to extra 's' in word) To close #<I>
py
diff --git a/raven/base.py b/raven/base.py index <HASH>..<HASH> 100644 --- a/raven/base.py +++ b/raven/base.py @@ -123,6 +123,7 @@ class Client(object): else: continue stack.append(frame) + stack.reverse() else: ...
Invert the direction of the auto-log traces so they match those given by Exceptions and culprit determination works properly.
py
diff --git a/manager.py b/manager.py index <HASH>..<HASH> 100644 --- a/manager.py +++ b/manager.py @@ -110,6 +110,7 @@ class ASTNGManager(OptionsProviderMixIn): raise except Exception, ex: if __debug__: + print 'error while building astng...
tell in which file we have encountered an unexpected error --HG-- branch : _ast_compat
py
diff --git a/zipline/finance/trading.py b/zipline/finance/trading.py index <HASH>..<HASH> 100644 --- a/zipline/finance/trading.py +++ b/zipline/finance/trading.py @@ -214,12 +214,10 @@ class OrderDataSource(qmsg.DataSource): #no more orders, should this be an error condition? if ...
fixed logic for timeouts on order. timeouts are not necessarily fatal.
py
diff --git a/tests/test_ytarray.py b/tests/test_ytarray.py index <HASH>..<HASH> 100644 --- a/tests/test_ytarray.py +++ b/tests/test_ytarray.py @@ -469,9 +469,9 @@ def test_unit_conversions(): base_units = {'length':'kpc','time':'Myr','mass':'1.0e14*Msun'} em3_converted = YTQuantity(1.545436840386756e-05, '1...
Taking account of the simplifications that were made --HG-- branch : yt
py
diff --git a/hearthstone/entities.py b/hearthstone/entities.py index <HASH>..<HASH> 100644 --- a/hearthstone/entities.py +++ b/hearthstone/entities.py @@ -164,8 +164,10 @@ class Player(Entity): # Exclude entity types that cannot be in the deck if not entity.can_be_in_deck: continue - # Exclude choice car...
entities: Allow CREATOR=1 in initial_deck
py
diff --git a/brome/core/runner/ec2_instance.py b/brome/core/runner/ec2_instance.py index <HASH>..<HASH> 100644 --- a/brome/core/runner/ec2_instance.py +++ b/brome/core/runner/ec2_instance.py @@ -67,10 +67,33 @@ class EC2Instance(BaseInstance): k = paramiko.RSAKey.from_private_key_file(self.browser_config.g...
Better ssh exec command
py
diff --git a/libextract/html.py b/libextract/html.py index <HASH>..<HASH> 100644 --- a/libextract/html.py +++ b/libextract/html.py @@ -53,7 +53,4 @@ def get_final_text(node): return ' '.join(node.xpath(FILTER_TEXT)) -STRATEGY = [get_etree, - get_pairs, - highest_scoring, - get_...
use tuple to represent strategy
py
diff --git a/blockstack_cli_0.14.1/blockstack_client/proxy.py b/blockstack_cli_0.14.1/blockstack_client/proxy.py index <HASH>..<HASH> 100644 --- a/blockstack_cli_0.14.1/blockstack_client/proxy.py +++ b/blockstack_cli_0.14.1/blockstack_client/proxy.py @@ -350,6 +350,17 @@ def get_consensus_range(block_id_start, block_id...
Add get_name_blockchain_history
py
diff --git a/pyflakes/checker.py b/pyflakes/checker.py index <HASH>..<HASH> 100644 --- a/pyflakes/checker.py +++ b/pyflakes/checker.py @@ -139,9 +139,6 @@ class Scope(dict): def __repr__(self): return '<%s at 0x%x %s>' % (self.__class__.__name__, id(self), dict.__repr__(self)) - def __init__(self): -...
Method Scope.__init__ is not needed.
py
diff --git a/ryu/lib/packet/llc.py b/ryu/lib/packet/llc.py index <HASH>..<HASH> 100644 --- a/ryu/lib/packet/llc.py +++ b/ryu/lib/packet/llc.py @@ -124,6 +124,8 @@ class llc(packet_base.PacketBase): _CTR_TYPES = {} _CTR_PACK_STR = '!2xB' + _MIN_LEN = _PACK_LEN + @staticmethod def register_contro...
packet lib: provide llc._MIN_LEN
py
diff --git a/run_tests.py b/run_tests.py index <HASH>..<HASH> 100644 --- a/run_tests.py +++ b/run_tests.py @@ -17,5 +17,8 @@ for testsuite in tests_suites: runnable.addTest(unittest.makeSuite(test_case)) runner=unittest.TextTestRunner() -exit(runner.run(runnable)) +test_result = runner.run(runnable) + +if t...
run_tests: exit with code error if failures
py
diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see <http://www.gnu.org/licenses/>. -__version__ =...
Update Pyrogram to <I>
py
diff --git a/knowledge_base/__init__.py b/knowledge_base/__init__.py index <HASH>..<HASH> 100755 --- a/knowledge_base/__init__.py +++ b/knowledge_base/__init__.py @@ -590,9 +590,9 @@ class KnowledgeBase(object): title.ecrm_P139_has_alternative_form = abbr title.update() - urn = self.create_ur...
corrected small bug in kb.add_work()
py
diff --git a/bt/core.py b/bt/core.py index <HASH>..<HASH> 100644 --- a/bt/core.py +++ b/bt/core.py @@ -321,6 +321,14 @@ class StrategyBase(Node): return self._capital @property + def cash(self): + """ + TimeSeries of unallocated capital. + """ + # no stale check needed + ...
ENH: unallocated cash is saved in "data" structure of the Strategy
py
diff --git a/pyrogram/client/types/__init__.py b/pyrogram/client/types/__init__.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/types/__init__.py +++ b/pyrogram/client/types/__init__.py @@ -28,13 +28,11 @@ from .input_media import ( InputMediaAudio, InputPhoneContact, InputMediaVideo, InputMediaPhoto, In...
Fix init not having message and media types
py
diff --git a/nameko/standalone/rpc.py b/nameko/standalone/rpc.py index <HASH>..<HASH> 100644 --- a/nameko/standalone/rpc.py +++ b/nameko/standalone/rpc.py @@ -78,11 +78,13 @@ class PollingQueueConsumer(object): if self.consumer is not None: try: self.consumer.cancel() - ...
Catch IOError in PollingQueueConsumer `py-amqplib` may throw `IOError: socket closed` when it can't read from or write to the socket. When this happens, assume the consumer is already cancelled.
py
diff --git a/MAVProxy/modules/mavproxy_link.py b/MAVProxy/modules/mavproxy_link.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_link.py +++ b/MAVProxy/modules/mavproxy_link.py @@ -378,11 +378,11 @@ class LinkModule(mp_module.MPModule): sysid = m.get_srcSystem() if sysid in self.mpstate....
mavproxy_link: pass sysid-output position through to NMEA module
py
diff --git a/findimports.py b/findimports.py index <HASH>..<HASH> 100755 --- a/findimports.py +++ b/findimports.py @@ -43,6 +43,11 @@ Caching: findimports.py foo.importcache -d -T > graph1.dot findimports.py foo.importcache -d -N -c -p -l 2 > graph2.dot +Bugs: + + findimports doesn't know about s...
Make findumports.py -u report duplicate imports too. Originally committed <I>-<I>-<I> <I>:<I>:<I> <I> to a different SVN repository (python-tools) as revision <I>.
py
diff --git a/pycbc/ahope/ahope_utils.py b/pycbc/ahope/ahope_utils.py index <HASH>..<HASH> 100644 --- a/pycbc/ahope/ahope_utils.py +++ b/pycbc/ahope/ahope_utils.py @@ -61,14 +61,15 @@ def make_analysis_dir(path): Make the analysis directory path, any parent directories that don't already exist, and the 'logs' ...
check that path is not None in direction creation functions
py
diff --git a/lib/bibformat_engine.py b/lib/bibformat_engine.py index <HASH>..<HASH> 100644 --- a/lib/bibformat_engine.py +++ b/lib/bibformat_engine.py @@ -225,7 +225,7 @@ def call_old_bibformat(recID, format="HD", on_the_fly=False, verbose=0): (result_code, result_path) = tempfile.mkstemp() command = ...
Fixed bug in code for popen replacement (old BibFormat).
py