diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/python/demo/main.py b/python/demo/main.py index <HASH>..<HASH> 100755 --- a/python/demo/main.py +++ b/python/demo/main.py @@ -18,7 +18,7 @@ """A simple guestbook app that demonstrates using the MapReduce libraries.""" -import auto_import_fixer + from google.appengine.ext import db from google.appe...
Removed erroneous import. MOE_MIGRATION=
py
diff --git a/mpop/satin/eps_l1b.py b/mpop/satin/eps_l1b.py index <HASH>..<HASH> 100644 --- a/mpop/satin/eps_l1b.py +++ b/mpop/satin/eps_l1b.py @@ -180,7 +180,7 @@ class EpsAvhrrL1bReader(object): nav_sample_rate = self["NAV_SAMPLE_RATE"] earth_views_per_scanline = self["EARTH_VIEWS_PER_SCANLINE"] ...
bugfix: importing geotiepoints
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,19 @@ # -*- coding: utf-8 -*- import re +import unittest from setuptools import setup +def my_test_suite(): + """From http://stackoverflow.com/questions/17001010/. + + """ + test_loader = unittest.Tes...
Run tests from setup.py.
py
diff --git a/ella/core/box.py b/ella/core/box.py index <HASH>..<HASH> 100644 --- a/ella/core/box.py +++ b/ella/core/box.py @@ -139,7 +139,7 @@ class Box(object): t_list = [] if hasattr(self.obj, 'category_id') and self.obj.category_id: from ella.core.models import Category - ca...
Most objects already have .category, no need to retrieve it from cache
py
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py index <HASH>..<HASH> 100755 --- a/src/toil/cwl/cwltoil.py +++ b/src/toil/cwl/cwltoil.py @@ -390,6 +390,9 @@ def main(args=None): workdir = tempfile.mkdtemp() os.rmdir(workdir) + if args is None: + args = sys.argv[1:] + options = p...
If no args are passed to cwltoil tool main method, use system args (the default None will cause exception on the [workdir] + args)
py
diff --git a/telethon/tl/custom/conversation.py b/telethon/tl/custom/conversation.py index <HASH>..<HASH> 100644 --- a/telethon/tl/custom/conversation.py +++ b/telethon/tl/custom/conversation.py @@ -372,7 +372,7 @@ class Conversation(ChatGetter): else: pending.cancel() - for _, fu...
Fix cancellation of custom conversation events from d<I>
py
diff --git a/lib/svtplay_dl/service/picsearch.py b/lib/svtplay_dl/service/picsearch.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/picsearch.py +++ b/lib/svtplay_dl/service/picsearch.py @@ -8,6 +8,7 @@ import copy from svtplay_dl.service import Service, OpenGraphThumbMixin from svtplay_dl.utils import ge...
picsearch: import hds and hdsparse.
py
diff --git a/distro.py b/distro.py index <HASH>..<HASH> 100755 --- a/distro.py +++ b/distro.py @@ -49,7 +49,7 @@ _OS_RELEASE_BASENAME = 'os-release' #: #: * Value: Normalized value. NORMALIZED_OS_ID = { - 'ol': 'oracle', # Oracle Enterprise Linux + 'ol': 'oracle', # Oracle Linux } #: Translation table fo...
#<I> Oracle Enterprise Linux was renamed to Oracle Linux since version 5.x
py
diff --git a/pysbf/blocks.py b/pysbf/blocks.py index <HASH>..<HASH> 100644 --- a/pysbf/blocks.py +++ b/pysbf/blocks.py @@ -347,6 +347,7 @@ GPSNav = ( ('M_0', 'f8'), ('C_uc', 'f4'), ('E', 'f8'), + ('C_us', 'f4'), ('SQRT_A', 'f8'), ('T_oe', 'u4'), ('C_is', 'f4'),
Fixed 'GPSNav' block. It was missing the 'C_us' parameter.
py
diff --git a/tests/integration/test_controller.py b/tests/integration/test_controller.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_controller.py +++ b/tests/integration/test_controller.py @@ -149,7 +149,7 @@ async def test_list_models_user_access(event_loop): # testing all flag await us...
Revise test case that checks the listed models Checking exact list of models from different points is not reliable in CI tests as there are many models created and destroyed in the concurrent event loop. Checking the number of models instead should be solid.
py
diff --git a/tests/integration/test_application.py b/tests/integration/test_application.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_application.py +++ b/tests/integration/test_application.py @@ -249,7 +249,10 @@ async def test_app_destroy(event_loop): await model.wait_for_idle(status="active") ...
Better waiting for the app.destroy test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,10 +39,10 @@ on how to use MAVProxy.''', 'MAVProxy.modules.lib.ANUGA', 'MAVProxy.modules.lib.optparse_gui'], install_requires=['pymavlink>=1.1.2', - 'matplotl...
setup: make dependencies a bit looser
py
diff --git a/intake/tests/test_top_level.py b/intake/tests/test_top_level.py index <HASH>..<HASH> 100644 --- a/intake/tests/test_top_level.py +++ b/intake/tests/test_top_level.py @@ -109,3 +109,8 @@ def test_bad_open(): def test_output_notebook(): pytest.importorskip('hvplot') intake.output_notebook() + + +d...
Add test of depracation for Catalog
py
diff --git a/devtools/bin/create-test-list.py b/devtools/bin/create-test-list.py index <HASH>..<HASH> 100755 --- a/devtools/bin/create-test-list.py +++ b/devtools/bin/create-test-list.py @@ -52,7 +52,7 @@ def examine_python_rules(line): def examine_non_python_rules(line): if 'test/functional' in line: - ...
The testing of non-python files was breaking tox Issues: Fixes #<issueid> Problem: The testing of non-python files was breaking tox Analysis: non-python file's should be tested via their directory Tests:
py
diff --git a/maildir-deduplicate.py b/maildir-deduplicate.py index <HASH>..<HASH> 100755 --- a/maildir-deduplicate.py +++ b/maildir-deduplicate.py @@ -190,7 +190,7 @@ def get_canonical_header_value(header, value): # it will receive a different prefix for each, but this shouldn't be # treated as a real differe...
Trim multiple prefixes from Subject
py
diff --git a/jax/experimental/optix.py b/jax/experimental/optix.py index <HASH>..<HASH> 100644 --- a/jax/experimental/optix.py +++ b/jax/experimental/optix.py @@ -83,7 +83,6 @@ ClipByGlobalNormState = collections.namedtuple("ClipByGlobalNormState", "") def global_norm(items): return jnp.sqrt(jnp.sum([jnp.sum(x**2...
Make gradient clipping by norm more numerically safe
py
diff --git a/livereload/server.py b/livereload/server.py index <HASH>..<HASH> 100644 --- a/livereload/server.py +++ b/livereload/server.py @@ -143,7 +143,7 @@ class LiveScriptContainer(WSGIContainer): ) header_obj = httputil.HTTPHeaders() for key, value in headers: - if key == 'Con...
Update server.py (#<I>) in falcon, headers are lowercase, thus Content-Length (camel cased) could not be detected and lengthened. to address this issue I propose this change
py
diff --git a/chalice/deploy/swagger.py b/chalice/deploy/swagger.py index <HASH>..<HASH> 100644 --- a/chalice/deploy/swagger.py +++ b/chalice/deploy/swagger.py @@ -130,8 +130,9 @@ class SwaggerGenerator(object): 'x-amazon-apigateway-integration': self._generate_apig_integ( view), }...
Improve readability for docstring check
py
diff --git a/sanic/request.py b/sanic/request.py index <HASH>..<HASH> 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -134,8 +134,8 @@ def parse_multipart_form(body, boundary): :param boundary: Bytes multipart boundary :return: fields (dict), files (dict) """ - files = {} - fields = {} + ...
fix(request): parse_multipart_form should return RequestParameters I have this code: ``` form = FileForm(request.files) ``` and it raise error because the `request.files` is `dict` but `RequestParameters` is expected =/
py
diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py index <HASH>..<HASH> 100644 --- a/moto/awslambda/models.py +++ b/moto/awslambda/models.py @@ -231,6 +231,10 @@ class LambdaFunction(BaseModel): config.update({"VpcId": "vpc-123abc"}) return config + @property + def physical_r...
Set the physical resource ID property for the lambda model
py
diff --git a/dimod/higherorder/utils.py b/dimod/higherorder/utils.py index <HASH>..<HASH> 100644 --- a/dimod/higherorder/utils.py +++ b/dimod/higherorder/utils.py @@ -109,16 +109,6 @@ def reduce_binary_polynomial(poly: BinaryPolynomial) -> Tuple[ Returns: ([(term, bias)*], [((orig_var1, orig_var2), aux_...
temporarily remove doctest to try fix CircleCI issue
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100755 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -3831,6 +3831,15 @@ def test_nerubar_weblord(): assert perdition1.cost == perdition2.cost == 3 +def test_lord_jaraxxus_molten(): + game = prepare_game() + jaraxxus = game.player1.g...
Add test for Lord Jaraxxus and Molten Giant
py
diff --git a/simuvex/storage/paged_memory.py b/simuvex/storage/paged_memory.py index <HASH>..<HASH> 100644 --- a/simuvex/storage/paged_memory.py +++ b/simuvex/storage/paged_memory.py @@ -102,6 +102,7 @@ class SimPagedMemory(object): def __getstate__(self): return { '_memory_backer': self._mem...
Added _permissions_backer attribute to __getstate__ method of SimPagedMemory object
py
diff --git a/cocaine/proxy/proxy.py b/cocaine/proxy/proxy.py index <HASH>..<HASH> 100644 --- a/cocaine/proxy/proxy.py +++ b/cocaine/proxy/proxy.py @@ -787,7 +787,7 @@ def main(): opts.define("logfmt", type=str, help="logfmt", default="[%(asctime)s.%(msecs)d]\t[%(module).10s:%(filename).5s:%(lineno...
Fix(typo): missed char
py
diff --git a/ros_buildfarm/config/__init__.py b/ros_buildfarm/config/__init__.py index <HASH>..<HASH> 100644 --- a/ros_buildfarm/config/__init__.py +++ b/ros_buildfarm/config/__init__.py @@ -93,7 +93,7 @@ def _get_build_file_data(index, dist_name, type_): raise RuntimeError("Unknown release: '{0}'. Valid relea...
support configuration index without build files for a certain type
py
diff --git a/gwpy/timeseries/timeseries.py b/gwpy/timeseries/timeseries.py index <HASH>..<HASH> 100644 --- a/gwpy/timeseries/timeseries.py +++ b/gwpy/timeseries/timeseries.py @@ -325,8 +325,8 @@ class TimeSeries(TimeSeriesBase): Returns ------- - psd : `~gwpy.frequencyseries.FrequencySeries`...
gwpy.timeseries: fix typo in TimeSeries.asd docs fixes #<I>
py
diff --git a/vyper/semantics/validation/annotation.py b/vyper/semantics/validation/annotation.py index <HASH>..<HASH> 100644 --- a/vyper/semantics/validation/annotation.py +++ b/vyper/semantics/validation/annotation.py @@ -142,6 +142,8 @@ class ExpressionAnnotationVisitor(_AnnotationVisitorBase): # builtin...
fix: annotated kwargs for builtins This is a regression in <I>, the way function calls got annotated was changed but kwargs didn't get the update. Test case: ``` balances: HashMap[uint<I>, uint<I>] @external def foo(receiver: address): raw_call(receiver, b"", value=self.balance - self.balances[0]) ```
py
diff --git a/pypuppetdb/api/v3.py b/pypuppetdb/api/v3.py index <HASH>..<HASH> 100644 --- a/pypuppetdb/api/v3.py +++ b/pypuppetdb/api/v3.py @@ -100,6 +100,9 @@ class API(BaseAPI): except AttributeError: node['status'] = 'unreported' + if not node['report_timestamp']: + ...
fix for status without report timestamp nodes without a report timestamp will status unreported pep8 fix
py
diff --git a/test/connection_tests.py b/test/connection_tests.py index <HASH>..<HASH> 100644 --- a/test/connection_tests.py +++ b/test/connection_tests.py @@ -65,6 +65,7 @@ class WhenRecievingConnectionCloseOK(OpenConnectionContext): def when_connection_close_ok_arrives(self): self.server.send_method(0,...
Fixed connection test to wait a bit before checking
py
diff --git a/spock/plugins/core/event.py b/spock/plugins/core/event.py index <HASH>..<HASH> 100644 --- a/spock/plugins/core/event.py +++ b/spock/plugins/core/event.py @@ -16,6 +16,7 @@ class EventCore: self.event_handlers = defaultdict(list) signal.signal(signal.SIGINT, self.kill) signal.signal(signal.SIGTERM,...
Add unique response event generator to Event plugin
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='dbaas_zabbix', - version='0.5.1', + version='0.6.0', description='A Zabbix Integration for DBaaS.', long_de...
Adding new version to dbaas-zabbix
py
diff --git a/tmpo/__init__.py b/tmpo/__init__.py index <HASH>..<HASH> 100644 --- a/tmpo/__init__.py +++ b/tmpo/__init__.py @@ -81,6 +81,13 @@ SQL_TMPO_ALL = """ ORDER BY rid ASC, lvl DESC, bid ASC""" SQL_TMPO_LAST = """ + SELECT rid, lvl, bid, ext + FROM tmpo + WHERE sid = ? + ORDER BY created DESC,...
Split `SQL_TMPO_LAST` into `SQL_TMPO_LAST` (which now doesn't include data) and `SQL_TMPO_LAST_DATA` (which does include data). Sync uses the one without data to determine from where to start.
py
diff --git a/import_export/admin.py b/import_export/admin.py index <HASH>..<HASH> 100644 --- a/import_export/admin.py +++ b/import_export/admin.py @@ -370,7 +370,7 @@ class ExportMixin(ImportExportMixinBase): ]() queryset = self.get_export_queryset(request) - export_data = self.ge...
Forgot a line for last commit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,8 +20,16 @@ USE_CYTHON = os.environ.get('USE_CYTHON', False) ext = 'pyx' if USE_CYTHON else 'c' IS_WINDOWS = sys.platform.startswith('win') -openmp_opt = '/openmp' if IS_WINDOWS else '-fopenmp' -optim_opt = '/Ox' if IS...
Remove openmp flag for mac sytems
py
diff --git a/katcp/resource_client.py b/katcp/resource_client.py index <HASH>..<HASH> 100644 --- a/katcp/resource_client.py +++ b/katcp/resource_client.py @@ -1415,6 +1415,10 @@ class IOLoopThreadWrapper(object): return future.result(timeout) except TimeoutError: raise + except...
Clean up KeyboardInterrupt so session can complete after an SB is cancelled.
py
diff --git a/suomimalaga/vvfst/generate_lex.py b/suomimalaga/vvfst/generate_lex.py index <HASH>..<HASH> 100644 --- a/suomimalaga/vvfst/generate_lex.py +++ b/suomimalaga/vvfst/generate_lex.py @@ -94,7 +94,6 @@ def get_vfst_word_class(j_wordclasses): # Returns a string describing the structure of a word, if necessary ...
Strip useless characters at the end of structure pattern
py
diff --git a/flask_venom/__init__.py b/flask_venom/__init__.py index <HASH>..<HASH> 100644 --- a/flask_venom/__init__.py +++ b/flask_venom/__init__.py @@ -103,5 +103,5 @@ class Venom(venom.rpc.Venom): if isinstance(service, venom.rpc.Stub): return - for method in service.__methods__.value...
refactor: use service instances instead of service classes
py
diff --git a/orb/querying/query.py b/orb/querying/query.py index <HASH>..<HASH> 100644 --- a/orb/querying/query.py +++ b/orb/querying/query.py @@ -1295,7 +1295,7 @@ class Query(object): if type(value) == set: value = list(value) - if type(value) not in (list, tuple): + elif type(va...
allowing recordsets to be passed into the notin property
py
diff --git a/indra/tests/test_statements.py b/indra/tests/test_statements.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_statements.py +++ b/indra/tests/test_statements.py @@ -1337,6 +1337,7 @@ def test_serialize(): st2 = stmts_from_json([jstr])[0] assert(st.equals(st2)) assert unicode_strs((ev1, ...
Check hash is persistend through to_json-from_json.
py
diff --git a/hypermap/proxymap/views.py b/hypermap/proxymap/views.py index <HASH>..<HASH> 100644 --- a/hypermap/proxymap/views.py +++ b/hypermap/proxymap/views.py @@ -55,6 +55,8 @@ def get_mapproxy(layer, seed=False, ignore_warnings=True, renderd=False): # blindly replace it with /arcgis/ url = url....
Correct replacement in ESRI ImageServer
py
diff --git a/pyvirtualdisplay/abstractdisplay.py b/pyvirtualdisplay/abstractdisplay.py index <HASH>..<HASH> 100644 --- a/pyvirtualdisplay/abstractdisplay.py +++ b/pyvirtualdisplay/abstractdisplay.py @@ -139,10 +139,13 @@ class AbstractDisplay(object): """ d = self.new_display_var if on else self.old_d...
check if $DISPLAY was already unset
py
diff --git a/barrister/runtime.py b/barrister/runtime.py index <HASH>..<HASH> 100644 --- a/barrister/runtime.py +++ b/barrister/runtime.py @@ -35,7 +35,7 @@ def unpack_method(method): return iface_name, func_name def idgen_uuid(): - return uuid.uuid4() + return uuid.uuid4().hex idgen_seq_counter = iter...
idgen_uuid must return hex representation so we can serialize it
py
diff --git a/cassiopeia/cassiopeia.py b/cassiopeia/cassiopeia.py index <HASH>..<HASH> 100644 --- a/cassiopeia/cassiopeia.py +++ b/cassiopeia/cassiopeia.py @@ -69,7 +69,7 @@ def get_challenger_league(queue: Union[Queue, int, str], region: Union[Region, s def get_match_history(summoner: Summoner, begin_index: int = None...
Added type hint for get_match() so the documentation (when regenerated) will show that you can get a match via a match ID (was previously unclear via docs)
py
diff --git a/test/spider_task.py b/test/spider_task.py index <HASH>..<HASH> 100644 --- a/test/spider_task.py +++ b/test/spider_task.py @@ -92,6 +92,11 @@ class TestSpider(TestCase): g.setup(url='zzz') bot.add_task(task.clone(grab_config=g.config)) + def test_task_clone_with_url_param(self): + ...
Add extra test to test task.clone method
py
diff --git a/vision/google/cloud/vision/feature.py b/vision/google/cloud/vision/feature.py index <HASH>..<HASH> 100644 --- a/vision/google/cloud/vision/feature.py +++ b/vision/google/cloud/vision/feature.py @@ -25,12 +25,11 @@ class FeatureTypes(object): DOCUMENT_TEXT_DETECTION = 'DOCUMENT_TEXT_DETECTION' FAC...
Delete duplicated constant (#<I>)
py
diff --git a/wfdb/io/download.py b/wfdb/io/download.py index <HASH>..<HASH> 100644 --- a/wfdb/io/download.py +++ b/wfdb/io/download.py @@ -225,12 +225,10 @@ def _stream_annotation(file_name, pn_dir): url = posixpath.join(config.db_index_url, pn_dir, file_name) # Get the content - response = requests.get(...
_stream_annotation: use _get_url in place of requests.get.
py
diff --git a/ipymd/converters.py b/ipymd/converters.py index <HASH>..<HASH> 100644 --- a/ipymd/converters.py +++ b/ipymd/converters.py @@ -73,11 +73,15 @@ def process_cell_input(cell, lang=None, code_wrap=None, add_prompt=None): if add_prompt: outputs = cell.get('outputs', []) - output = '\n'.joi...
Add cell stdout in markdown.
py
diff --git a/user_agents/parsers.py b/user_agents/parsers.py index <HASH>..<HASH> 100644 --- a/user_agents/parsers.py +++ b/user_agents/parsers.py @@ -165,6 +165,8 @@ class UserAgent(object): return True if self.os.family.startswith('Windows RT'): return True + if self.os.famil...
Identify FirefoxOS tablets as tablets.
py
diff --git a/tests/test_analyzers_default.py b/tests/test_analyzers_default.py index <HASH>..<HASH> 100755 --- a/tests/test_analyzers_default.py +++ b/tests/test_analyzers_default.py @@ -9,6 +9,7 @@ from timeside.plugins.decoder.file import FileDecoder from timeside.core.tools.test_samples import samples from jsonsch...
Test HDF5 serialization for all analyzers
py
diff --git a/responders/Gmail/gmail.py b/responders/Gmail/gmail.py index <HASH>..<HASH> 100755 --- a/responders/Gmail/gmail.py +++ b/responders/Gmail/gmail.py @@ -27,7 +27,7 @@ class Gmail(Responder): "type": "service_account", "project_id": self.get_param("config.gmail_project_id", None, "Pro...
fixed private key to be compliant with PEM format
py
diff --git a/tests/run_tests.py b/tests/run_tests.py index <HASH>..<HASH> 100644 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -92,3 +92,6 @@ wipe_file('file_to_copy.txt') wipe_file('my_grid.txt') wipe_file('test_grid.txt') +wipe_file('chr31_delimited_data_file.csv') +wipe_file('chr31_delimited_data_file.dat...
removing test files for CHR<I>
py
diff --git a/openpnm/models/geometry/pore_size.py b/openpnm/models/geometry/pore_size.py index <HASH>..<HASH> 100644 --- a/openpnm/models/geometry/pore_size.py +++ b/openpnm/models/geometry/pore_size.py @@ -101,6 +101,9 @@ def largest_sphere(target, fixed_diameter='pore.fixed_diameter', iters=5): _np.minimum.a...
not sure why it failed on travis...passes locally
py
diff --git a/local_settings/settings.py b/local_settings/settings.py index <HASH>..<HASH> 100644 --- a/local_settings/settings.py +++ b/local_settings/settings.py @@ -64,13 +64,13 @@ class Settings(dict): if isinstance(v, Mapping): super(Settings, self).__setitem__(k, Settings(v)) - #...
Move comment to correct location in Settings class
py
diff --git a/examples/heat_demand_example.py b/examples/heat_demand_example.py index <HASH>..<HASH> 100644 --- a/examples/heat_demand_example.py +++ b/examples/heat_demand_example.py @@ -6,9 +6,11 @@ import pandas as pd import demandlib.bdew as bdew from matplotlib import pyplot as plt import datetime +import os ...
Fix data path issue when installed via pip
py
diff --git a/jaraco/mongodb/oplog.py b/jaraco/mongodb/oplog.py index <HASH>..<HASH> 100644 --- a/jaraco/mongodb/oplog.py +++ b/jaraco/mongodb/oplog.py @@ -98,7 +98,7 @@ class Renamer(dict): ns = old_ns.sub(new_ns, op['ns']).rstrip(".") logging.debug("renaming %s to %s", op['ns'], ns) ...
Need a better test for index operations; 'i' stands for insert, not index. Ref #1.
py
diff --git a/chisel/action.py b/chisel/action.py index <HASH>..<HASH> 100644 --- a/chisel/action.py +++ b/chisel/action.py @@ -33,6 +33,7 @@ import json # Action error response exception class ActionError(Exception): def __init__(self, error, message = None): + Exception.__init__(self, error) sel...
Ensure ActionError has __repr__
py
diff --git a/ida_settings/ida_settings.py b/ida_settings/ida_settings.py index <HASH>..<HASH> 100644 --- a/ida_settings/ida_settings.py +++ b/ida_settings/ida_settings.py @@ -100,12 +100,31 @@ import contextlib import idc import idaapi -try: - from PyQt5 import QtCore -except ImportError: - from PySide import...
use qt import mechaism from cute. closes #2.
py
diff --git a/dispatch/modules/content/models.py b/dispatch/modules/content/models.py index <HASH>..<HASH> 100644 --- a/dispatch/modules/content/models.py +++ b/dispatch/modules/content/models.py @@ -642,7 +642,8 @@ class ImageGallery(Model): def save_attachments(self, attachments): self.images.clear() +...
delete old gallery images (keep db clean)
py
diff --git a/indra/tests/test_pysb_assembler.py b/indra/tests/test_pysb_assembler.py index <HASH>..<HASH> 100644 --- a/indra/tests/test_pysb_assembler.py +++ b/indra/tests/test_pysb_assembler.py @@ -255,7 +255,19 @@ def test_statement_specific_policies(): assert(len(model.rules)==4) assert(len(model.monomers)...
Add test for setting policies for unspec stmts Phosphorylation is given the policy 'two_step', but any other statements (in this case, the Dephosphorylation statement) is given the policy 'interactions_only', via the 'other' entry in the policies dict.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -346,21 +346,3 @@ texinfo_documents = [ # # texinfo_no_detailmenu = False - -def run_apidoc(_): - modules = ['../astrocats'] - for module in modules: - cur_dir = os.path.abspath(os.path.dirname...
ENH: re-added rst files.
py
diff --git a/invenio_deposit/restful.py b/invenio_deposit/restful.py index <HASH>..<HASH> 100644 --- a/invenio_deposit/restful.py +++ b/invenio_deposit/restful.py @@ -29,7 +29,6 @@ from werkzeug.utils import secure_filename from invenio.ext.restful import error_codes, require_api_auth, \ require_header, require...
restful: unused access import removal
py
diff --git a/src/pybel/io.py b/src/pybel/io.py index <HASH>..<HASH> 100644 --- a/src/pybel/io.py +++ b/src/pybel/io.py @@ -4,7 +4,6 @@ import codecs import json import logging import os -import pickle from ast import literal_eval import networkx as nx @@ -19,6 +18,11 @@ from .constants import PYBEL_CONTEXT_TAG, ...
Update reloading of BELGraphs from pickle
py
diff --git a/jaraco/itertools.py b/jaraco/itertools.py index <HASH>..<HASH> 100644 --- a/jaraco/itertools.py +++ b/jaraco/itertools.py @@ -711,9 +711,12 @@ def takewhile_peek(predicate, iterable): [4] """ while True: - if not predicate(iterable.peek()): + try: + if not predicate(iterable.peek()): + break +...
Fix error about StopIteration raised in generator.
py
diff --git a/tools/vis2.py b/tools/vis2.py index <HASH>..<HASH> 100755 --- a/tools/vis2.py +++ b/tools/vis2.py @@ -88,7 +88,7 @@ class Plot: def plot(self, x, y, color, marker_shape, legend): self.ax.plot(x, y, linestyle="-", label=str(legend), color=color, - marker=marker_shape, mar...
performance charts: increase marker size; add rh border
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ else: setup( name='moto', - version='1.1.24', + version='1.1.25', description='A library that allows your python tests to easily' ' mock out the boto library', author='St...
bumping to version <I>
py
diff --git a/hwt/synthesizer/rtlLevel/optimalizator.py b/hwt/synthesizer/rtlLevel/optimalizator.py index <HASH>..<HASH> 100644 --- a/hwt/synthesizer/rtlLevel/optimalizator.py +++ b/hwt/synthesizer/rtlLevel/optimalizator.py @@ -39,8 +39,12 @@ def removeUnconnectedSignals(netlist): if e.result is...
removeUnconnectedSignals: fix for statements driving multiple signals
py
diff --git a/gearbox/main.py b/gearbox/main.py index <HASH>..<HASH> 100644 --- a/gearbox/main.py +++ b/gearbox/main.py @@ -23,7 +23,10 @@ class GearBox(App): def configure_logging(self): if self.options.debug: warnings.simplefilter('default') - logging.captureWarnings(True) + ...
Python <I> doesn't support logging.captureWarnings
py
diff --git a/openquake/commands/engine.py b/openquake/commands/engine.py index <HASH>..<HASH> 100644 --- a/openquake/commands/engine.py +++ b/openquake/commands/engine.py @@ -42,7 +42,7 @@ def read(calc_id, username=None): :param username: if given, restrict the search to the user's calculations :returns: the...
Small fix [skip CI]
py
diff --git a/examples/bluetooth/ble_temperature_central.py b/examples/bluetooth/ble_temperature_central.py index <HASH>..<HASH> 100644 --- a/examples/bluetooth/ble_temperature_central.py +++ b/examples/bluetooth/ble_temperature_central.py @@ -128,7 +128,7 @@ class BLETemperatureCentral: if conn_handle == s...
examples/bluetooth: Fix event code in ble_temperature_central.py.
py
diff --git a/src/spring/setup.py b/src/spring/setup.py index <HASH>..<HASH> 100644 --- a/src/spring/setup.py +++ b/src/spring/setup.py @@ -16,7 +16,7 @@ except ImportError: # TODO: Confirm this is the right version number you want and it matches your # HISTORY.rst entry. -VERSION = '4.0.0' +VERSION = '1.0.0' # T...
Update spring initial version in setup.py (#<I>)
py
diff --git a/modelx/core/formula.py b/modelx/core/formula.py index <HASH>..<HASH> 100644 --- a/modelx/core/formula.py +++ b/modelx/core/formula.py @@ -14,6 +14,7 @@ import ast import os +import warnings from types import FunctionType from inspect import signature, getsource, getsourcefile from textwrap import de...
FIX: Error when function source is not available
py
diff --git a/src/suit_dashboard/decorators.py b/src/suit_dashboard/decorators.py index <HASH>..<HASH> 100644 --- a/src/suit_dashboard/decorators.py +++ b/src/suit_dashboard/decorators.py @@ -2,8 +2,6 @@ from __future__ import unicode_literals -import random -import string from functools import wraps from hashlib...
Make me remember to run tox before git commit
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ packages = [ # About dict to store version and package info about = dict() -with open(os.path.join(here, 'maya', '__version__.py'), 'r', 'utf-8') as f: +with open(os.path.join(here, 'maya', '__version__.py')...
Fixed setup.py bug by turning encoding into a keyword argument. Encoding parameter was being passed in the position belonging to the buffering parameter
py
diff --git a/dshelpers.py b/dshelpers.py index <HASH>..<HASH> 100644 --- a/dshelpers.py +++ b/dshelpers.py @@ -2,6 +2,7 @@ # encoding: utf-8 from __future__ import unicode_literals +from __future__ import absolute_import import datetime import logging @@ -9,16 +10,22 @@ import requests import requests_cache i...
Initial changes for Python <I> + <I> compatibility Tests don't yet pass.
py
diff --git a/indra/assemblers/pysb/assembler.py b/indra/assemblers/pysb/assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/pysb/assembler.py +++ b/indra/assemblers/pysb/assembler.py @@ -450,7 +450,8 @@ def parse_identifiers_url(url): if not len(g) == 2: return (None, None) ns...
Fix grounded_monomer_patterns for MESH and GO
py
diff --git a/aetros/commands/ServerCommand.py b/aetros/commands/ServerCommand.py index <HASH>..<HASH> 100644 --- a/aetros/commands/ServerCommand.py +++ b/aetros/commands/ServerCommand.py @@ -162,6 +162,8 @@ class ServerCommand: except Exception: pass if parsed_args.max_gpus: + self.enable...
fixed limit gpu devices in server command
py
diff --git a/tests/test_main.py b/tests/test_main.py index <HASH>..<HASH> 100755 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -920,6 +920,17 @@ def test_kill_command(): assert game.current_player.opponent.hero.health == 22 +def test_abusive_sergeant(): + game = prepare_game() + wisp = game.player1.give(WI...
Add test for Abusive Sergeant
py
diff --git a/bedup/filesystem.py b/bedup/filesystem.py index <HASH>..<HASH> 100644 --- a/bedup/filesystem.py +++ b/bedup/filesystem.py @@ -357,11 +357,12 @@ class WholeFS(object): seen_fs_ids.append(fs._impl.id) yield fs, di - for uuid, in self.sess.query( - BtrfsFilesystem...
Avoid an SAWarning in a corner case.
py
diff --git a/datascience/tables.py b/datascience/tables.py index <HASH>..<HASH> 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -1547,7 +1547,6 @@ class Table(collections.abc.MutableMapping): t['end'] = bins[1:] for label, column in zip(pvt_labels,vals): t[label] = colum...
store hist axis in self.plots
py
diff --git a/pipeline/middleware.py b/pipeline/middleware.py index <HASH>..<HASH> 100644 --- a/pipeline/middleware.py +++ b/pipeline/middleware.py @@ -6,8 +6,14 @@ from django.utils.html import strip_spaces_between_tags as minify_html from pipeline.conf import settings +try: + # Support for Django 1.10 new MIDD...
Added compatibility for Django <I> new style middleware
py
diff --git a/src/harvesters/util/pfnc.py b/src/harvesters/util/pfnc.py index <HASH>..<HASH> 100644 --- a/src/harvesters/util/pfnc.py +++ b/src/harvesters/util/pfnc.py @@ -1146,7 +1146,7 @@ class Coord3D_A32f(_Mono_Unpacked_Float32): class Coord3D_B32f(_Mono_Unpacked_Float32): def __init__(self): # - ...
Resolve issue #<I> * Fixed a typo.
py
diff --git a/airflow/www/utils.py b/airflow/www/utils.py index <HASH>..<HASH> 100644 --- a/airflow/www/utils.py +++ b/airflow/www/utils.py @@ -113,10 +113,11 @@ def get_mapped_summary(parent_instance, task_instances): ) try_count = ( - parent_instance.prev_attempted_tries - if parent_instance....
Fix grid view for mapped tasks (#<I>)
py
diff --git a/salt/fileclient.py b/salt/fileclient.py index <HASH>..<HASH> 100644 --- a/salt/fileclient.py +++ b/salt/fileclient.py @@ -1356,7 +1356,8 @@ class FSClient(RemoteClient): the FSChan object ''' def __init__(self, opts): # pylint: disable=W0231 - RemoteClient.__init__(self, opts) + ...
Set utils property explicitly for FSClient
py
diff --git a/test/logging_test.py b/test/logging_test.py index <HASH>..<HASH> 100644 --- a/test/logging_test.py +++ b/test/logging_test.py @@ -4,7 +4,7 @@ Pytest functions for exercising prosper.common.prosper_logging """ -from os import path, listdir, remove +from os import path, listdir, remove, makedirs import...
adding makedirs(LOG_PATH) to make sure folder exists TODO: will need to add coverage for log path builder
py
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index <HASH>..<HASH> 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -98,3 +98,24 @@ class TestMultiIndexBasic: re...
TST: MultiIndex with complex (#<I>) TST: MultiIndex with complex (#<I>)
py
diff --git a/scanpy/tools/score_gene_lists.py b/scanpy/tools/score_gene_lists.py index <HASH>..<HASH> 100644 --- a/scanpy/tools/score_gene_lists.py +++ b/scanpy/tools/score_gene_lists.py @@ -79,7 +79,7 @@ def score_gene_list( control_genes = set() # now pick 100 genes from every cut - for cut in np.uniqu...
Fixed a bug that prevents to use proper bins of expression when calculating scores based on gene lists
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 @@ -89,7 +89,7 @@ class LinkModule(mp_module.MPModule): m.mav.srcComponent = self.settings.source_component ...
mavproxy_link: correct iteration over statustext message ids can get a dictionary-changed error without this. It's in the idle task (for where we don't have a complete message), so doesn't happen often.
py
diff --git a/mollie/api/version.py b/mollie/api/version.py index <HASH>..<HASH> 100644 --- a/mollie/api/version.py +++ b/mollie/api/version.py @@ -4,4 +4,4 @@ # processed by python imports and by regular expressions. The version is defined as a string in the # regular semantic versioning scheme (major,minor,patch). ...
Update version number to <I>
py
diff --git a/c7n/resources/s3.py b/c7n/resources/s3.py index <HASH>..<HASH> 100644 --- a/c7n/resources/s3.py +++ b/c7n/resources/s3.py @@ -2001,7 +2001,13 @@ class SetInventory(BucketActionBase): def process(self, buckets): with self.executor_factory(max_workers=2) as w: - list(w.map(self.pro...
s3 set-inventory action - don't fail on individual bucket access denied errors (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ def main(): platforms = ["Linux","Solaris","Mac OS X","Win"], py_modules = ['imageiter', 'nimageiter', 'numcombine', 'versioninfo', 'makewcs', 'irafglob...
Added the new module 'iterfile' to 'setup.py' so it will be distributed automatically along with the rest of the modules. WJH git-svn-id: <URL>
py
diff --git a/model_utils/managers.py b/model_utils/managers.py index <HASH>..<HASH> 100644 --- a/model_utils/managers.py +++ b/model_utils/managers.py @@ -129,6 +129,9 @@ class PassThroughManager(models.Manager): @classmethod def for_queryset_class(cls, queryset_cls): class _PassThroughManager(cls): ...
Updated PassThroughManager.for_queryset_class for less ambiguous behavior in case of incorrect usage.
py
diff --git a/emirdrp/recipes/image/join.py b/emirdrp/recipes/image/join.py index <HASH>..<HASH> 100644 --- a/emirdrp/recipes/image/join.py +++ b/emirdrp/recipes/image/join.py @@ -808,15 +808,15 @@ class FullDitheredImagesRecipe(JoinDitheredImagesRecipe): if compute_cross_offsets: self.logger.deb...
Fix incorrect region detection (cherry picked from commit <I>fa<I>da<I>de8d<I>fdb<I>f<I>ccf<I>e6e)
py
diff --git a/asn1crypto/algos.py b/asn1crypto/algos.py index <HASH>..<HASH> 100644 --- a/asn1crypto/algos.py +++ b/asn1crypto/algos.py @@ -596,6 +596,7 @@ class EncryptionAlgorithmId(ObjectIdentifier): '1.3.14.3.2.7': 'des', '1.2.840.113549.3.7': 'tripledes_3key', '1.2.840.113549.3.2': 'rc2',...
Add encryption algorithm id for RC4
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -54,9 +54,8 @@ setup( 'sphinx', 'nose', 'coverage', - 'Django>=1.4', + 'Django<1.7', 'mock', - 'unittest2', # optional testrunner in testuti...
for now, require on django pre <I>
py
diff --git a/icekit_events/models.py b/icekit_events/models.py index <HASH>..<HASH> 100644 --- a/icekit_events/models.py +++ b/icekit_events/models.py @@ -9,6 +9,8 @@ from datetime import timedelta from colorful.fields import RGBColorField from dateutil import rrule import six +from django.core.exceptions import Val...
Default implementation of get_occurrence_url
py
diff --git a/openstack_dashboard/api/heat.py b/openstack_dashboard/api/heat.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/api/heat.py +++ b/openstack_dashboard/api/heat.py @@ -182,14 +182,6 @@ def snapshot_delete(request, stack_id, snapshot_id): return heatclient(request).stacks.snapshot_delete(stack_id...
Delete the useless API of heat The results of "Output-show" and "Output-list" can be obtained in the "stack_get". And in the horizon "Output-show" and "Output-list" these two API is not used at all. Change-Id: I<I>b<I>b7e<I>d<I>e<I>feec<I>cb2c<I>cf<I>
py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index <HASH>..<HASH> 100755 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -123,11 +123,11 @@ Examples >>> merge(A, B, left_on='lkey', right_on='rkey', how='outer') lkey value_x rkey value_y -0 bar 2 bar 6 -1 bar 2 bar ...
DOC: Issue #<I> - Corrected MERGE example
py
diff --git a/dtool_s3/storagebroker.py b/dtool_s3/storagebroker.py index <HASH>..<HASH> 100644 --- a/dtool_s3/storagebroker.py +++ b/dtool_s3/storagebroker.py @@ -240,7 +240,7 @@ class S3StorageBroker(BaseStorageBroker): # Generic helper functions. - def _get_prefix(self, structure_dict_key): + def _get_...
Remove structure_dict_key from S3StorageBroker._get_prefix method
py
diff --git a/utils/Sfile_util.py b/utils/Sfile_util.py index <HASH>..<HASH> 100644 --- a/utils/Sfile_util.py +++ b/utils/Sfile_util.py @@ -1,6 +1,6 @@ #!/usr/bin/python """ -Part of the rt2detection module to read nordic format s-files and write them +Part of the EQcorrscan module to read nordic format s-files and wr...
Sfile-update - Changed name in doc script to EQcorrscan from rt2detection
py
diff --git a/cornflake/fields.py b/cornflake/fields.py index <HASH>..<HASH> 100644 --- a/cornflake/fields.py +++ b/cornflake/fields.py @@ -24,20 +24,24 @@ class Field(object): 'null': 'This field may not be null.' } - def __init__(self, source=None, read_only=False, write_only=False, required=None, d...
Remove explicit handling of partial updates Same result can be acheived by serializing the existing object and merging with the incoming data.
py