diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/salt/modules/virt.py b/salt/modules/virt.py index <HASH>..<HASH> 100644 --- a/salt/modules/virt.py +++ b/salt/modules/virt.py @@ -169,12 +169,12 @@ def get_disks(vm_): target = targets[0] else: continue - if 'dev' in target.attributes.keys(): + if 'dev' in t...
Fix a few syntax errors introduced to the virt module
py
diff --git a/luminoso_api/v5_client.py b/luminoso_api/v5_client.py index <HASH>..<HASH> 100644 --- a/luminoso_api/v5_client.py +++ b/luminoso_api/v5_client.py @@ -353,7 +353,7 @@ class LuminosoClient(object): """ return self._wait_for_build(interval=interval, path=path) - def wait_for_sentiment_b...
Bump up the interval for checking on sentiment builds (Because we know they can take longer than core builds.)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( tests_require=['tox'], install_requires=['elasticsearch', 'urllib3', 'filemagic', 'pefile', 'py2neo', 'pymongo', 'requests', 'cython', 'ssdeep==2.9-0.3', - ...
put a version on rekall so pypi doesn't barf
py
diff --git a/wurlitzer.py b/wurlitzer.py index <HASH>..<HASH> 100644 --- a/wurlitzer.py +++ b/wurlitzer.py @@ -267,8 +267,15 @@ def load_ipython_extension(ip): Captures all C output during execution and forwards to sys. + Does nothing on terminal IPython. + Use: %load_ext wurlitzer """...
Do nothing if loaded in terminal IPython and warn if it's attempted. wurlitzer doesn't make sense in terminal IPython because the C FDs are already going to the right place.
py
diff --git a/eventsourcing/infrastructure/base.py b/eventsourcing/infrastructure/base.py index <HASH>..<HASH> 100644 --- a/eventsourcing/infrastructure/base.py +++ b/eventsourcing/infrastructure/base.py @@ -189,7 +189,12 @@ class RelationalRecordManager(AbstractRecordManager): @property @abstractmethod d...
Removed body from abstract method (never gets called).
py
diff --git a/lib/yaml/constructor.py b/lib/yaml/constructor.py index <HASH>..<HASH> 100644 --- a/lib/yaml/constructor.py +++ b/lib/yaml/constructor.py @@ -238,15 +238,15 @@ class SafeConstructor(BaseConstructor): def construct_yaml_float(self, node): value = str(self.construct_scalar(node)) - val...
Optimize slightly the float constructor.
py
diff --git a/flowcraft/generator/engine.py b/flowcraft/generator/engine.py index <HASH>..<HASH> 100644 --- a/flowcraft/generator/engine.py +++ b/flowcraft/generator/engine.py @@ -101,7 +101,8 @@ process_map = { "split_assembly": meta.SplitAssembly, "trimmomatic": readsqc.Trimmomatic, "true_co...
Add abyss component to engine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,6 +35,11 @@ under TeamCity and prints usual diagnostics without it. **nose**: test status reporting enabled automatically under TeamCity build. **py.test**: run with --teamcity command line option. + +**django**: For D...
add note about django runner to setup.py
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,9 +17,9 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -# import os -# import sys -# sy...
Get viewcode working on readthedocs
py
diff --git a/eventsourcing/infrastructure/stored_events/cassandra_stored_events.py b/eventsourcing/infrastructure/stored_events/cassandra_stored_events.py index <HASH>..<HASH> 100644 --- a/eventsourcing/infrastructure/stored_events/cassandra_stored_events.py +++ b/eventsourcing/infrastructure/stored_events/cassandra_st...
Changed expression with call to random() so that it is evaluated only when necessary.
py
diff --git a/gdapi.py b/gdapi.py index <HASH>..<HASH> 100755 --- a/gdapi.py +++ b/gdapi.py @@ -292,7 +292,13 @@ class Client: url = url + id else: url = "/".join([url, id]) - return self._get(url) + try: + return self._get(url) + except ApiError, e: + if e.error.code == "RESOURCE_N...
by_id should return None when not found
py
diff --git a/salt/modules/pkgng.py b/salt/modules/pkgng.py index <HASH>..<HASH> 100644 --- a/salt/modules/pkgng.py +++ b/salt/modules/pkgng.py @@ -742,9 +742,6 @@ def install(name=None, if pkg_params is None or len(pkg_params) == 0: return {} -<<<<<Stephen! I hope you have a fantastic birthday. Also, th...
Don't know how that got in there.
py
diff --git a/src/hdx/utilities/retriever.py b/src/hdx/utilities/retriever.py index <HASH>..<HASH> 100644 --- a/src/hdx/utilities/retriever.py +++ b/src/hdx/utilities/retriever.py @@ -409,6 +409,7 @@ class Retrieve(BaseDownload): use_saved: bool = False, ignore: ListTuple[str] = tuple(), delet...
Add kwargs to retriever generator to allow for subclasses
py
diff --git a/tensorboard.py b/tensorboard.py index <HASH>..<HASH> 100644 --- a/tensorboard.py +++ b/tensorboard.py @@ -140,7 +140,11 @@ def main(unused_argv=None): print('Starting TensorBoard %s on port %d' % (tag, FLAGS.port)) if FLAGS.host == "0.0.0.0": - print('(You can navigate to http://%s:%d)' % (socke...
Fix bug where TensorBoard will crash if it can't determine host ip address (#<I>) * Fix bug where TensorBoard may crash if it cannot resolve host ip address * Remove redundant code.
py
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py index <HASH>..<HASH> 100755 --- a/MAVProxy/tools/mavflightview.py +++ b/MAVProxy/tools/mavflightview.py @@ -189,7 +189,7 @@ def mavflightview(filename): print("Can't find longitude on GPS message") p...
mavflightview: support ANU1 position message
py
diff --git a/tests/test_jujupy.py b/tests/test_jujupy.py index <HASH>..<HASH> 100644 --- a/tests/test_jujupy.py +++ b/tests/test_jujupy.py @@ -1516,6 +1516,13 @@ class TestEnvJujuClient(ClientTest): client.wait_for_started(start=now - timedelta(1200)) self.assertEqual(writes, [...
Start testing wait_for_status.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages -__version__ = '0.4.0' +__version__ = '0.4.1' setup(
Bumped version number to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,6 +34,7 @@ setup( install_requires=[ 'six', + 'jsonconversion' ], setup_requires=[
Adds jsonconversion to install_requires (#<I>)
py
diff --git a/lib/python/vdm/server/venv_starter.py b/lib/python/vdm/server/venv_starter.py index <HASH>..<HASH> 100755 --- a/lib/python/vdm/server/venv_starter.py +++ b/lib/python/vdm/server/venv_starter.py @@ -164,9 +164,7 @@ def _build_virtual_environment(venv_dir, version, packages): def create_data_config_path(p...
VDM-<I> Modified the relative paths.
py
diff --git a/mtools/mplotqueries/plottypes/base_type.py b/mtools/mplotqueries/plottypes/base_type.py index <HASH>..<HASH> 100644 --- a/mtools/mplotqueries/plottypes/base_type.py +++ b/mtools/mplotqueries/plottypes/base_type.py @@ -10,7 +10,10 @@ except ImportError: class BasePlotType(object): - colors = ['k', '...
Increased number of colors to <I>, fixed #<I>.
py
diff --git a/sumy/parsers/plaintext.py b/sumy/parsers/plaintext.py index <HASH>..<HASH> 100644 --- a/sumy/parsers/plaintext.py +++ b/sumy/parsers/plaintext.py @@ -27,9 +27,8 @@ class PlaintextParser(DocumentParser): def significant_words(self): words = [] for paragraph in self.document.paragraphs...
Fixed retrieving significant words from plaintext parser
py
diff --git a/validator/sawtooth_validator/journal/chain.py b/validator/sawtooth_validator/journal/chain.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/journal/chain.py +++ b/validator/sawtooth_validator/journal/chain.py @@ -484,6 +484,21 @@ class BlockValidator(object): # 4) Evaluate t...
Improve validator fork resolution logging Adds an INFO level message which logs the heads of the forks being compared. Also adds INFO level messages to print the blocks being compared at each height.
py
diff --git a/packages/vaex-ui/vaex/ui/_version.py b/packages/vaex-ui/vaex/ui/_version.py index <HASH>..<HASH> 100644 --- a/packages/vaex-ui/vaex/ui/_version.py +++ b/packages/vaex-ui/vaex/ui/_version.py @@ -1,2 +1,2 @@ -__version_tuple__ = (0, 1, 7) -__version__ = '0.1.7' +__version_tuple__ = (0, 2, 0) +__version__ = '...
Release <I> of vaex-ui
py
diff --git a/vminspect/timeline.py b/vminspect/timeline.py index <HASH>..<HASH> 100644 --- a/vminspect/timeline.py +++ b/vminspect/timeline.py @@ -126,7 +126,7 @@ def parse_journal(journal): """ events = [e for e in journal if not isinstance(e, CorruptedUsnRecord)] - keyfunc = lambda e: e.file_name + e.t...
timeline: more fine grained events de-duplication Consider the inode for de-duplication of events. Strict name checking when aggregating events.
py
diff --git a/unittest/test_fluidsynth.py b/unittest/test_fluidsynth.py index <HASH>..<HASH> 100644 --- a/unittest/test_fluidsynth.py +++ b/unittest/test_fluidsynth.py @@ -14,6 +14,16 @@ from mingus.midi.sequencer_observer import SequencerObserver class test_fluidsynth(unittest.TestCase): + """ + You must pro...
Add instructions on obtaining SoundFonts
py
diff --git a/peyotl/phylesystem/__init__.py b/peyotl/phylesystem/__init__.py index <HASH>..<HASH> 100644 --- a/peyotl/phylesystem/__init__.py +++ b/peyotl/phylesystem/__init__.py @@ -698,11 +698,12 @@ class _Phylesystem(_PhylesystemBase): if `study_id is None, all shards are pushed. ''' if st...
Push all possible shards. Should return False if one fails, but should not exit on the first failure. This is untested code because we only have one shard now (and our client supplies a study ID so we are not hitting this branch of code anyway).
py
diff --git a/packages/vaex-core/vaex/dataframe.py b/packages/vaex-core/vaex/dataframe.py index <HASH>..<HASH> 100644 --- a/packages/vaex-core/vaex/dataframe.py +++ b/packages/vaex-core/vaex/dataframe.py @@ -3613,7 +3613,7 @@ class DataFrame(object): max_index = indices.max() mask = df._selecti...
fix(core): df.sort and df.take had a bug, that sometimes cancelled. Introduced in <I>e<I>c<I>a<I>d<I>dd<I>c4fe<I>b9df1c6
py
diff --git a/grimoire_elk/elk/enrich.py b/grimoire_elk/elk/enrich.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/enrich.py +++ b/grimoire_elk/elk/enrich.py @@ -85,7 +85,7 @@ class Enrich(object): sh_db = None RAW_FIELDS_COPY = ["metadata__updated_on", "metadata__timestamp", - "o...
[enrich] Propagate the uuid field from raw item to enriched item
py
diff --git a/guake/guake_app.py b/guake/guake_app.py index <HASH>..<HASH> 100644 --- a/guake/guake_app.py +++ b/guake/guake_app.py @@ -121,7 +121,10 @@ class Guake(SimpleGladeApp): or self.settings.general.get_string("schema-version") != guake_version() ): log.exception("Schema from o...
Attempt to continue if schema file is in a protected location While purging my environment and reinstalling, I realised that if the schema file is in a protected location, this still fails on the first run because the version doesn't match and it'll try to recompile and fail. This probably will happen with packaged ve...
py
diff --git a/3rdparty/python/cpplint/cpplint.py b/3rdparty/python/cpplint/cpplint.py index <HASH>..<HASH> 100755 --- a/3rdparty/python/cpplint/cpplint.py +++ b/3rdparty/python/cpplint/cpplint.py @@ -6207,7 +6207,8 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]): Error(filename, linenum, 'whitesp...
reduce cpp checkstyle logging (#<I>)
py
diff --git a/marko/cli.py b/marko/cli.py index <HASH>..<HASH> 100644 --- a/marko/cli.py +++ b/marko/cli.py @@ -67,7 +67,7 @@ def main(): else: keystroke = "Ctrl+Z" if sys.platform.startswith("win") else "Ctrl+D" print( - "Type in the markdown content to be converted. End with {}".forma...
Re-commit This is an attempt to reduce the number of changes in line-endings - a revision of the following commit, if you will: <I>d3b<I>c<I>a<I>bf<I>ddfe1e<I>ff
py
diff --git a/telemetry/telemetry/unittest/tab_test_case.py b/telemetry/telemetry/unittest/tab_test_case.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/unittest/tab_test_case.py +++ b/telemetry/telemetry/unittest/tab_test_case.py @@ -29,6 +29,7 @@ class TabTestCase(unittest.TestCase): self._browser.Star...
[telemetry] Attempt to fix testActivateTab. The test immediately checks for document visible. It might not be true because the page hasn't finished loading yet. So we should just wait for it. BUG=<I> TEST=tools/telemetry/run_tests testActivateTab # Though this isn't a <I>% test, since the flakiness was rare and Win...
py
diff --git a/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py b/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py index <HASH>..<HASH> 100644 --- a/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py +++ b/cluster/juju/layers/kubernetes-worker/reactive/kubernetes_wor...
Ensure daemon opts are in effect before docker login
py
diff --git a/numina/user/helpers.py b/numina/user/helpers.py index <HASH>..<HASH> 100644 --- a/numina/user/helpers.py +++ b/numina/user/helpers.py @@ -140,10 +140,31 @@ class DiskStorage(object): return fname +from numina.store import init_store_backends +from numina.store import dump + + class DiskStorag...
Store method moved into DiskStorageDefault class
py
diff --git a/ryu/tests/unit/ofproto/test_parser_v10.py b/ryu/tests/unit/ofproto/test_parser_v10.py index <HASH>..<HASH> 100644 --- a/ryu/tests/unit/ofproto/test_parser_v10.py +++ b/ryu/tests/unit/ofproto/test_parser_v10.py @@ -46,7 +46,7 @@ class TestOFPPhyPort(unittest.TestCase): buf = port_no['buf'] \ ...
python3: Don't use str.encode This commit partially reverts b<I>fedc<I>cb0c9c3fe<I>fc2d2f<I>b7fc<I>f8. This kind of change complicates assertion checks below.
py
diff --git a/restclients/test/trumba/calendars.py b/restclients/test/trumba/calendars.py index <HASH>..<HASH> 100644 --- a/restclients/test/trumba/calendars.py +++ b/restclients/test/trumba/calendars.py @@ -59,7 +59,7 @@ class TrumbaTestCalendars(TestCase): self.assertEqual(perm.name, 'Dummy publisher') ...
Revise assertion as publish permission is treated as an editor permission. git-svn-id: <URL>
py
diff --git a/validator/sawtooth_validator/execution/scheduler_parallel.py b/validator/sawtooth_validator/execution/scheduler_parallel.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/execution/scheduler_parallel.py +++ b/validator/sawtooth_validator/execution/scheduler_parallel.py @@ -70,6 +70,17 @@ cl...
Add PredecessorTree.prune
py
diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py index <HASH>..<HASH> 100644 --- a/zipline/transforms/utils.py +++ b/zipline/transforms/utils.py @@ -375,6 +375,8 @@ class BatchTransform(EventWindow): self.updated = False self.cached = None + self.last_args = None + ...
added checks for change in optional parameters to trigger transform recalculation.
py
diff --git a/phy/utils/array.py b/phy/utils/array.py index <HASH>..<HASH> 100644 --- a/phy/utils/array.py +++ b/phy/utils/array.py @@ -200,6 +200,8 @@ class ConcatenatedArrays(object): self.offsets = np.concatenate([[0], np.cumsum([arr.shape[0] for arr in...
Added dtype and shape attributes to ConcatenatedArrays class.
py
diff --git a/salt/states/grains.py b/salt/states/grains.py index <HASH>..<HASH> 100644 --- a/salt/states/grains.py +++ b/salt/states/grains.py @@ -400,7 +400,7 @@ def append(name, value, convert=False, 'result': True, 'comment': ''} grain = __salt__['grains.get'](name, None) - if grain: ...
if grain is defined as None still convert in append Fixes #<I>
py
diff --git a/pysat/utils/io.py b/pysat/utils/io.py index <HASH>..<HASH> 100644 --- a/pysat/utils/io.py +++ b/pysat/utils/io.py @@ -1839,7 +1839,8 @@ def inst_to_netcdf(inst, fname, base_instrument=None, epoch_name='Epoch', complevel=complevel, shuffle=shuffle) ...
BUG: Fixed metadata to file for series profiles.
py
diff --git a/switchbot/devices/bulb.py b/switchbot/devices/bulb.py index <HASH>..<HASH> 100644 --- a/switchbot/devices/bulb.py +++ b/switchbot/devices/bulb.py @@ -131,6 +131,8 @@ class SwitchbotBulb(SwitchbotDevice): def _update_state(self, result: bytes) -> None: """Update device state.""" + if ...
fix: add a guard to the bulb to reject invalid state updates (#<I>)
py
diff --git a/merlyn/test/test_service.py b/merlyn/test/test_service.py index <HASH>..<HASH> 100644 --- a/merlyn/test/test_service.py +++ b/merlyn/test/test_service.py @@ -87,7 +87,7 @@ class ServiceMakerTests(SynchronousTestCase): """The service maker uses the tapname ``merlyn``. """ - self.a...
Use equality, not identity, for strings This test usually passes on CPython due to small string interning. Also supporting PyPy successfully highlighted the flaw.
py
diff --git a/eli5/sklearn/explain_prediction.py b/eli5/sklearn/explain_prediction.py index <HASH>..<HASH> 100644 --- a/eli5/sklearn/explain_prediction.py +++ b/eli5/sklearn/explain_prediction.py @@ -63,7 +63,10 @@ def explain_prediction_linear_classifier( X = _get_X(doc, vec=vec, vectorized=vectorized) if i...
predict_proba may raise NotImplementedError for some of the loss functions
py
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index <HASH>..<HASH> 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2469,9 +2469,9 @@ def _remove_md5_fragment(location): def _version_from_file(lines): is_version_line = lambda line: line.lower().startswith('version:')...
Return None when no version is encountered.
py
diff --git a/neo/Settings.py b/neo/Settings.py index <HASH>..<HASH> 100644 --- a/neo/Settings.py +++ b/neo/Settings.py @@ -183,7 +183,7 @@ class SettingsHolder: self.NODE_PORT = int(config['NodePort']) self.WS_PORT = config['WsPort'] self.URI_PREFIX = config['UriPrefix'] - self.ACCEPT_...
Default self.ACCEPT_INCOMING_PEERS to False
py
diff --git a/Adyen/client.py b/Adyen/client.py index <HASH>..<HASH> 100644 --- a/Adyen/client.py +++ b/Adyen/client.py @@ -23,7 +23,7 @@ HMAC_TEST_url = "https://ca-test.adyen.com/ca/ca/skin/checkhmac.shtml" BASE_PAL_url = "https://pal-{}.adyen.com/pal/servlet" BASE_HPP_url = "https://{}.adyen.com/hpp" -API_VERSION...
Changed version endpoint to <I>
py
diff --git a/iacli/ia_list.py b/iacli/ia_list.py index <HASH>..<HASH> 100755 --- a/iacli/ia_list.py +++ b/iacli/ia_list.py @@ -1,13 +1,14 @@ """List files in a given item. usage: - ia list [-v] [--glob=<pattern>] [--columns <column1,column2> | --all] <identifier> + ia list [-v] [--glob=<pattern>|--location] [...
Added `--location` option to `ia list`, prints full URL to file as opposed to just the filename.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,8 @@ from setuptools import find_packages, setup dir_path = os.path.abspath(os.path.dirname(__file__)) readme = io.open(os.path.join(dir_path, 'README.rst'), encoding='utf-8').read() -version = io.open(os.path.join...
Add PEP8 code compliance according to pycodestyle
py
diff --git a/petrel/petrel/storm.py b/petrel/petrel/storm.py index <HASH>..<HASH> 100644 --- a/petrel/petrel/storm.py +++ b/petrel/petrel/storm.py @@ -382,8 +382,7 @@ class BasicBolt(Task): global MODE MODE = Bolt global ANCHOR_TUPLE - conf, context = initComponent() - self.init...
BasicBolt needs a shared_initialize() call as well
py
diff --git a/tests/unit/nupic/research/spatial_pooler_unit_test.py b/tests/unit/nupic/research/spatial_pooler_unit_test.py index <HASH>..<HASH> 100755 --- a/tests/unit/nupic/research/spatial_pooler_unit_test.py +++ b/tests/unit/nupic/research/spatial_pooler_unit_test.py @@ -1188,6 +1188,11 @@ class SpatialPoolerTest(un...
Adding a unit test for initialized perm bounds
py
diff --git a/skflow/estimators/base.py b/skflow/estimators/base.py index <HASH>..<HASH> 100644 --- a/skflow/estimators/base.py +++ b/skflow/estimators/base.py @@ -425,7 +425,7 @@ class TensorFlowEstimator(BaseEstimator): if not os.path.exists(saver_filename): raise ValueError("Restore fold...
Use the public TensorFlow API to access SaverDef The current code accesses SaverDef using an obsolete private API. This change makes skflow compatible with TensorFlow <I> and up.
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 @@ -1,4 +1,4 @@ -# Copyright (C) 2013 Ian Harry +# Copyright (C) 2013 Ian Harry, Alex Nitz # # This program is free software; you can redistribute it and...
add ability to execute a node at runtime
py
diff --git a/spacy/language.py b/spacy/language.py index <HASH>..<HASH> 100644 --- a/spacy/language.py +++ b/spacy/language.py @@ -19,6 +19,7 @@ from .pipeline import DependencyParser, Tensorizer, Tagger, EntityRecognizer from .pipeline import SimilarityHook, TextCategorizer, SentenceSegmenter from .pipeline import m...
Add morphologizer pipeline component to Language
py
diff --git a/models/rasmachine/rasmachine.py b/models/rasmachine/rasmachine.py index <HASH>..<HASH> 100644 --- a/models/rasmachine/rasmachine.py +++ b/models/rasmachine/rasmachine.py @@ -341,12 +341,20 @@ if __name__ == '__main__': if len(sys.argv) < 2: logger.error('Model name argument missing') ...
Add default config loading to RAS Machine Closes #<I> 1. Checks if argument is explicitly given and uses that 2. Checks if default location exists and uses that 3. Fails
py
diff --git a/backend/__16bit.py b/backend/__16bit.py index <HASH>..<HASH> 100644 --- a/backend/__16bit.py +++ b/backend/__16bit.py @@ -138,11 +138,11 @@ def _add16(ins): if _int_ops(op1, op2) is not None: op1, op2 = _int_ops(op1, op2) + output = _16bit_oper(op1) op2 = int16(op2) ...
Bugfix: Fixed add<I> Fixed (stack params) and optimized.
py
diff --git a/openquake/commonlib/datastore.py b/openquake/commonlib/datastore.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/datastore.py +++ b/openquake/commonlib/datastore.py @@ -20,10 +20,8 @@ import os import re import getpass import collections -#import numpy import h5py -#from openquake.baselib.py...
Cleanup [skip CI]
py
diff --git a/src/feat/agencies/replay.py b/src/feat/agencies/replay.py index <HASH>..<HASH> 100644 --- a/src/feat/agencies/replay.py +++ b/src/feat/agencies/replay.py @@ -216,8 +216,9 @@ class JournalReplayEntry(object): return self except Exception as e: - self._replay.error("Failed ...
Log traceback for errors during replaying.
py
diff --git a/hacking/checks/imports.py b/hacking/checks/imports.py index <HASH>..<HASH> 100644 --- a/hacking/checks/imports.py +++ b/hacking/checks/imports.py @@ -11,6 +11,7 @@ # under the License. import imp +import inspect import os import re import sys @@ -100,7 +101,20 @@ def hacking_import_rules(logical_li...
Allow import redirections When we move modules out of namespace packages we set up redirects to import the new module under the old name. Python's import machinery doesn't detect those things as modules, and the names don't show up in sys.modules. However, if we look at what we actually got when we did the import we c...
py
diff --git a/vmf/vmf.py b/vmf/vmf.py index <HASH>..<HASH> 100644 --- a/vmf/vmf.py +++ b/vmf/vmf.py @@ -151,7 +151,7 @@ class World(Entity): worldcount = 0 def __init__(self): - Entity.__init__(self, 'worldspawn', 'TODO') + Entity.__init__(self, 'worldspawn') self.skyname = 'sky_day01_...
Update World constructor in accordance with previous commit Fixing things is half as much fun as breaking things.
py
diff --git a/smartcard/Examples/scard-api/sample_getStatusChange.py b/smartcard/Examples/scard-api/sample_getStatusChange.py index <HASH>..<HASH> 100755 --- a/smartcard/Examples/scard-api/sample_getStatusChange.py +++ b/smartcard/Examples/scard-api/sample_getStatusChange.py @@ -67,7 +67,7 @@ try: hresult, hcontext...
sample_getStatusChange: fix PEP8 warnings sample_getStatusChange.py:<I>:<I>: E<I> the backslash is redundant between brackets sample_getStatusChange.py:<I>:<I>: E<I> the backslash is redundant between brackets sample_getStatusChange.py:<I>:<I>: E<I> the backslash is redundant between brackets
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -251,6 +251,7 @@ def test_temporary_docker_directory_uses_hard_link(): plugins_dir=None, static=[], install=[], + spatialite=False, ...
Fixed tests I broke in b<I>e<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( description='A utility for interacting with data from git repositories as Pandas dataframes', long_description=long_description, url='https://github.com/wdm0006/git-pandas', - download_u...
updating setup to pull from VERSION
py
diff --git a/src/_util.py b/src/_util.py index <HASH>..<HASH> 100644 --- a/src/_util.py +++ b/src/_util.py @@ -119,7 +119,12 @@ def _copy_data(instream, outstream): coder = find_encodings() while True: - data = instream.read(1024) + if ((_py3k and isinstance(instream, str)) or + (no...
Slice equiv. bytes from strings as we read() from file handles in _copy_data().
py
diff --git a/datastore/google/cloud/datastore/client.py b/datastore/google/cloud/datastore/client.py index <HASH>..<HASH> 100644 --- a/datastore/google/cloud/datastore/client.py +++ b/datastore/google/cloud/datastore/client.py @@ -464,6 +464,23 @@ class Client(_BaseClient, _ClientProjectMixin): >>> for entit...
Adding doc snippet for paging with cursors.
py
diff --git a/ignite/contrib/handlers/tqdm_logger.py b/ignite/contrib/handlers/tqdm_logger.py index <HASH>..<HASH> 100644 --- a/ignite/contrib/handlers/tqdm_logger.py +++ b/ignite/contrib/handlers/tqdm_logger.py @@ -199,6 +199,11 @@ class ProgressBar(BaseLogger): def _close(self, engine): if self.pbar is...
Issue #<I> : pbar persists due to specific rule in tqdm (notebook) when n < total (#<I>) * Issue #<I> pbar persists in notebook due to specific rules when n < total * close pbar doesn't rise danger bar * fix when pbar.total is None
py
diff --git a/src/livestreamer/plugins/ustreamtv.py b/src/livestreamer/plugins/ustreamtv.py index <HASH>..<HASH> 100644 --- a/src/livestreamer/plugins/ustreamtv.py +++ b/src/livestreamer/plugins/ustreamtv.py @@ -18,6 +18,10 @@ class UStreamTV(Plugin): return "ustream.tv" in url def _get_channel_id(self, ...
get channel id from embed URLs
py
diff --git a/pycam02ucs/cm/viscm.py b/pycam02ucs/cm/viscm.py index <HASH>..<HASH> 100644 --- a/pycam02ucs/cm/viscm.py +++ b/pycam02ucs/cm/viscm.py @@ -18,7 +18,6 @@ import matplotlib.colors from matplotlib.colors import LinearSegmentedColormap from pycam02ucs import cspace_converter -from pycam02ucs.srgb import sRG...
Remove stale import from viscm
py
diff --git a/injector/__init__.py b/injector/__init__.py index <HASH>..<HASH> 100644 --- a/injector/__init__.py +++ b/injector/__init__.py @@ -301,7 +301,7 @@ class InstanceProvider(Provider): ... def __init__(self): ... self.contents = [] >>> def configure(binder): - ... ...
Fix InstanceProvider doctest I broke it in <I>cbfde<I>eb<I>bdfa9d7fc2c0c1b<I>a5f<I> – this actually means to be a regular binding.
py
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py index <HASH>..<HASH> 100644 --- a/python/phonenumbers/__init__.py +++ b/python/phonenumbers/__init__.py @@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency # Version number is taken from the ...
Prep for <I> release
py
diff --git a/bugwarrior/services/phab.py b/bugwarrior/services/phab.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/phab.py +++ b/bugwarrior/services/phab.py @@ -156,7 +156,7 @@ class PhabricatorService(IssueService): if self.shown_user_phids is not None: # Checking whether author...
Force list to get keys of differential reviewers
py
diff --git a/experiments/fields/bd1xx.py b/experiments/fields/bd1xx.py index <HASH>..<HASH> 100644 --- a/experiments/fields/bd1xx.py +++ b/experiments/fields/bd1xx.py @@ -31,7 +31,10 @@ from ..model import experiments def experiment_name(self, key, value): """Name of experiment.""" value = utils.force_list(v...
facets: adds facets for other collections * Closes #<I>.
py
diff --git a/fost_authn/middleware.py b/fost_authn/middleware.py index <HASH>..<HASH> 100644 --- a/fost_authn/middleware.py +++ b/fost_authn/middleware.py @@ -18,12 +18,18 @@ class Middleware: return credentials return [None, None] - def process_request(self, request): + def key_hmac(self,...
Split apart the parsing step from the processing so that we can make use of the functionality in other tests etc.
py
diff --git a/tests/integrations/sanic/test_sanic.py b/tests/integrations/sanic/test_sanic.py index <HASH>..<HASH> 100644 --- a/tests/integrations/sanic/test_sanic.py +++ b/tests/integrations/sanic/test_sanic.py @@ -114,7 +114,7 @@ def test_error_in_errorhandler(sentry_init, app, capture_events): for frame in e...
fix: Fix sanic tests
py
diff --git a/bonsai/model.py b/bonsai/model.py index <HASH>..<HASH> 100644 --- a/bonsai/model.py +++ b/bonsai/model.py @@ -795,7 +795,7 @@ class CodeReference(CodeExpression): def _children(self): """Yield all direct children of this object.""" - if self.field_of: + if isinstance(self.fiel...
Yielding children correctly in fields and methods
py
diff --git a/openfisca_web_api/controllers.py b/openfisca_web_api/controllers.py index <HASH>..<HASH> 100644 --- a/openfisca_web_api/controllers.py +++ b/openfisca_web_api/controllers.py @@ -101,9 +101,11 @@ def api1_fields(req): u"name": u"prenom", }), (u'birth', { - u"@ty...
Accept a year instead of a full birth date.
py
diff --git a/src/sos/workers.py b/src/sos/workers.py index <HASH>..<HASH> 100755 --- a/src/sos/workers.py +++ b/src/sos/workers.py @@ -195,7 +195,7 @@ class SoS_SubStep_Worker(mp.Process): def run(self): - # env.logger.warning(f'Substep worker created {os.getpid()}') + env.logger.warning(f'Subste...
Handle the case where substep worker is soft (SIGTERM) killed #<I>
py
diff --git a/aiowebrtc/sctp.py b/aiowebrtc/sctp.py index <HASH>..<HASH> 100644 --- a/aiowebrtc/sctp.py +++ b/aiowebrtc/sctp.py @@ -422,7 +422,9 @@ class Endpoint: await self._send_chunk(sack) await self.recv_queue.put((chunk.stream_id, chunk.protocol, chunk.user_data)) elif isinstance...
[sctp] log warning on ABORT
py
diff --git a/host/pybar/daq/fifo_readout.py b/host/pybar/daq/fifo_readout.py index <HASH>..<HASH> 100644 --- a/host/pybar/daq/fifo_readout.py +++ b/host/pybar/daq/fifo_readout.py @@ -264,12 +264,12 @@ class FifoReadout(object): def reset_rx(self, channels=None): logging.info('Resetting RX') if ...
BUG: changes to address bug report #3. Still needs crosscheck
py
diff --git a/src/libs/comm_py/comm/ros/listenerCamera.py b/src/libs/comm_py/comm/ros/listenerCamera.py index <HASH>..<HASH> 100644 --- a/src/libs/comm_py/comm/ros/listenerCamera.py +++ b/src/libs/comm_py/comm/ros/listenerCamera.py @@ -4,6 +4,7 @@ import threading from math import pi as PI from jderobotTypes import Im...
Added missing np import. Fixed #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,8 +34,7 @@ setup( download_url='https://github.com/HiPERCAM/hcam_widgets/archive/v0.5.0.tar.gz', packages=[ 'hcam_widgets', - 'hcam_widgets.gtc', - 'hcam_widgets.gtc.idls' + 'hcam_wi...
IDLs for CORBA shipped seperately
py
diff --git a/vais/simulator.py b/vais/simulator.py index <HASH>..<HASH> 100644 --- a/vais/simulator.py +++ b/vais/simulator.py @@ -1,8 +1,4 @@ # simulator.py -import os -import vais.planet as planet -import vais.character as character - class Simulator(object): """ @@ -132,8 +128,9 @@ class Simulator(object): ...
cleaned up code - unused imports
py
diff --git a/amino/task.py b/amino/task.py index <HASH>..<HASH> 100644 --- a/amino/task.py +++ b/amino/task.py @@ -294,7 +294,10 @@ Pure = Now def Try(f: Callable[..., A], *a, **kw) -> Either[Exception, A]: - return Task.delay(f, *a, **kw).attempt + try: + return Right(f(*a, **kw)) + except Excepti...
don't use `Task` in `Try`
py
diff --git a/tmpo.py b/tmpo.py index <HASH>..<HASH> 100644 --- a/tmpo.py +++ b/tmpo.py @@ -248,10 +248,9 @@ class Session(): self._npdelta(pdsblk.index, h["head"][0]) self._npdelta(pdsblk, h["head"][1]) # only truncate if needed (avoids pandas bug and more efficient) - if head > pdsblk...
[pandas] Don't use truncate at all because the index are integers. See also previous commit and comments here: <URL>
py
diff --git a/astromodels/functions/functions.py b/astromodels/functions/functions.py index <HASH>..<HASH> 100644 --- a/astromodels/functions/functions.py +++ b/astromodels/functions/functions.py @@ -956,4 +956,4 @@ if has_gsl: this_integral = self._integral(a, b, alpha, xc) - return F / this...
cutoff_powerlaw_flux: using np.divide instead of just / so we can accept lists as input
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,8 @@ with open('HISTORY.rst') as history_file: long_discription = readme + '\n\n' + history install_requires = [ - 'PyLD>=0.7.1' + 'attrs>=16.2.0', + 'PyLD>=0.7.1', ] tests_require = [
chore: add attrs to dependencies For future use in refactoring the models
py
diff --git a/werkzeug/minitmpl.py b/werkzeug/minitmpl.py index <HASH>..<HASH> 100644 --- a/werkzeug/minitmpl.py +++ b/werkzeug/minitmpl.py @@ -52,6 +52,11 @@ class Template(object): """ def __init__(self, source, unicode_mode=True): + from warnings import warn + warn(DeprecationWarning('minitm...
added warning to minitmpl --HG-- branch : trunk
py
diff --git a/ELiDE/ELiDE/screen.py b/ELiDE/ELiDE/screen.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/screen.py +++ b/ELiDE/ELiDE/screen.py @@ -443,7 +443,7 @@ Builder.load_string( Button: id: calbut size_hint_y: 0.1 - text: "board/cal" + text: "toggle agenda" on_release...
Change button text to reflect the new name of Agenda
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ # -*- coding: utf-8 -*- import os +import sys from setuptools import setup, Extension import numpy as np @@ -21,7 +22,7 @@ ext_mods = [Extension(name='GPy.kern._src.stationary_cython', ...
The bug fix for the cblas.h problem in Mac os x
py
diff --git a/tests/data_context/test_configuration_storage.py b/tests/data_context/test_configuration_storage.py index <HASH>..<HASH> 100644 --- a/tests/data_context/test_configuration_storage.py +++ b/tests/data_context/test_configuration_storage.py @@ -55,7 +55,7 @@ expectations_directory: expectations/ stores: e...
Update py2 text in test_preserve_comments
py
diff --git a/infi/execute/result.py b/infi/execute/result.py index <HASH>..<HASH> 100644 --- a/infi/execute/result.py +++ b/infi/execute/result.py @@ -109,7 +109,7 @@ class Result(object): raise CommandTimeout(self) return returned def is_finished(self): - return self.get_returncode() ...
HOSTDEV-<I> os.kill raises WindowsError if process is already finished
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,10 +24,10 @@ tests_require = [ 'hypothesis-pytest==0.19.0', 'py==1.4.34', 'pydocstyle==2.0.0', - 'pytest==3.1.2', + 'pytest==3.1.3', 'pytest-benchmark==3.1.0a2', 'pytest-cov==2.5.1', - 'Sp...
update to latest pytest (<I>), sphinx, and pre-commit
py
diff --git a/app/app/app/app.py b/app/app/app/app.py index <HASH>..<HASH> 100644 --- a/app/app/app/app.py +++ b/app/app/app/app.py @@ -2,7 +2,7 @@ Provides an entrypoint for for uWSGI sets up a flask app with defaults from App.py """ -from evernode.classes import App +from evernode.classes import App, JsonRespon...
showing custom error response with JsonResponse usage.
py
diff --git a/master/buildbot/test/integration/test_try_client.py b/master/buildbot/test/integration/test_try_client.py index <HASH>..<HASH> 100644 --- a/master/buildbot/test/integration/test_try_client.py +++ b/master/buildbot/test/integration/test_try_client.py @@ -128,6 +128,10 @@ class Schedulers(dirs.DirsMixin, uni...
don't let printStatus produce unexpected results
py
diff --git a/inginious/frontend/courses.py b/inginious/frontend/courses.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/courses.py +++ b/inginious/frontend/courses.py @@ -15,7 +15,7 @@ from inginious.common.tags import Tag from inginious.frontend.accessible_time import AccessibleTime from inginious.frontend.p...
Ensure TOC is default task dispenser
py
diff --git a/tests/models.py b/tests/models.py index <HASH>..<HASH> 100644 --- a/tests/models.py +++ b/tests/models.py @@ -7,7 +7,7 @@ from airflow import models class DagRunTest(unittest.TestCase): def test_id_for_date(self): run_id = models.DagRun.id_for_date( - datetime.datetime(2015, 01, 0...
remove leading zeros for python3 compatibility
py
diff --git a/google-cloud-scheduler/synth.py b/google-cloud-scheduler/synth.py index <HASH>..<HASH> 100644 --- a/google-cloud-scheduler/synth.py +++ b/google-cloud-scheduler/synth.py @@ -110,6 +110,14 @@ s.replace( 'port = service_port || self.class::DEFAULT_SERVICE_PORT' ) +# TEMP: Re-add project_path helper w...
chore(scheduler): Reinstate project_path helper in synth
py
diff --git a/dynamic_dynamodb/config/__init__.py b/dynamic_dynamodb/config/__init__.py index <HASH>..<HASH> 100644 --- a/dynamic_dynamodb/config/__init__.py +++ b/dynamic_dynamodb/config/__init__.py @@ -48,8 +48,8 @@ DEFAULT_OPTIONS = { 'max_provisioned_reads': None, 'min_provisioned_writes': None, ...
Adjusted Default var is incrementing twice, so adjusted default values to twice their original amount
py
diff --git a/tests/test_request_construction.py b/tests/test_request_construction.py index <HASH>..<HASH> 100644 --- a/tests/test_request_construction.py +++ b/tests/test_request_construction.py @@ -488,8 +488,7 @@ class TestExtraParameters: # Explicitly marked as optional and containing only non-optional ...
test code cleanup - reword reason for an xfailed test
py
diff --git a/jobtastic/task.py b/jobtastic/task.py index <HASH>..<HASH> 100644 --- a/jobtastic/task.py +++ b/jobtastic/task.py @@ -160,9 +160,11 @@ class JobtasticTask(Task): try: return self.delay(*args, **kwargs) except IOError as e: - # Take this exception and store it as an...
Refs #<I>. Clarified why `delay_or_fail` uses the backend to store the error.
py