diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/test_customer.py b/tests/test_customer.py index <HASH>..<HASH> 100644 --- a/tests/test_customer.py +++ b/tests/test_customer.py @@ -12,6 +12,13 @@ from openprovider.models import Address, Name, Phone from openprovider.util import parse_phone_number +# Provide basestring in python3 +try: + bas...
Fix tests in python3
py
diff --git a/vaping/plugins/fping.py b/vaping/plugins/fping.py index <HASH>..<HASH> 100644 --- a/vaping/plugins/fping.py +++ b/vaping/plugins/fping.py @@ -117,7 +117,7 @@ class FPingBase(vaping.plugins.TimedProbe): # TODO poll, timeout, maybe from parent process for better control? with proc.stdout: ...
fping: fix encoding issue with py3 (#<I>)
py
diff --git a/wsgidav/debug_filter.py b/wsgidav/debug_filter.py index <HASH>..<HASH> 100644 --- a/wsgidav/debug_filter.py +++ b/wsgidav/debug_filter.py @@ -141,8 +141,11 @@ class WsgiDavDebugFilter(BaseMiddleware): # _logger.info("<{}> --- {} Request ---".format( # threading.currentThre...
Fix #<I> Cast REMOTE_PORT to string (#<I>) * Changed to output items that include lowercase letters * Add judgment of whether encode is implemented * Add try / catch to called safe_re_encode
py
diff --git a/simuvex/s_pcap.py b/simuvex/s_pcap.py index <HASH>..<HASH> 100644 --- a/simuvex/s_pcap.py +++ b/simuvex/s_pcap.py @@ -8,6 +8,7 @@ class Pcap(object): def __init__(self,path, ip_port_tup): self.path = path + self.packet_num = 0 self.pos = 0 self.in_streams = [] self.out_streams = [] @@ -27...
Dispose of 0 length packets
py
diff --git a/quilt/backup.py b/quilt/backup.py index <HASH>..<HASH> 100644 --- a/quilt/backup.py +++ b/quilt/backup.py @@ -34,12 +34,16 @@ class Backup(object): def backup_file(self, file, dest_dir, copy_empty=False): if file.exists(): if not copy_empty and file.is_empty(): - r...
Return created backup file Return the created backup file or None if not file has been backed up.
py
diff --git a/crony/crony.py b/crony/crony.py index <HASH>..<HASH> 100644 --- a/crony/crony.py +++ b/crony/crony.py @@ -12,7 +12,7 @@ import raven import requests from raven.handlers.logging import SentryHandler -__version__ = '0.1.1' +__version__ = '0.1.2' class CommandCenter(object):
:ambulance: Bug fix release * Versioning to <I> * Correctly capture stderr from subprocess call
py
diff --git a/GDAX/__init__.py b/GDAX/__init__.py index <HASH>..<HASH> 100644 --- a/GDAX/__init__.py +++ b/GDAX/__init__.py @@ -1,3 +1,3 @@ -from AuthenticatedClient import AuthenticatedClient -from PublicClient import PublicClient -from WebsocketClient import WebsocketClient \ No newline at end of file +from GDAX.Authe...
switched to absolute imports for Python 3 compatibility
py
diff --git a/niworkflows/interfaces/segmentation.py b/niworkflows/interfaces/segmentation.py index <HASH>..<HASH> 100644 --- a/niworkflows/interfaces/segmentation.py +++ b/niworkflows/interfaces/segmentation.py @@ -114,7 +114,10 @@ class MELODICRPT(reporting.ReportCapableInterface, fsl.MELODIC): from niworkflo...
ENH: Use HTML snippet as reportlet
py
diff --git a/gui/uploadlistview.py b/gui/uploadlistview.py index <HASH>..<HASH> 100644 --- a/gui/uploadlistview.py +++ b/gui/uploadlistview.py @@ -204,7 +204,7 @@ class UploadListModel(QAbstractTableModel): def headerData(self, section, orientation, role): if role != Qt.DisplayRole: - return ...
gui: bring back the CD column of uploadview
py
diff --git a/src/radical/entk/appman/appmanager.py b/src/radical/entk/appman/appmanager.py index <HASH>..<HASH> 100644 --- a/src/radical/entk/appman/appmanager.py +++ b/src/radical/entk/appman/appmanager.py @@ -700,9 +700,8 @@ class AppManager(object): final = self._rmgr.get_completed_states() in...
moving RTS failure under the workflow execution
py
diff --git a/openid/consumer/discover.py b/openid/consumer/discover.py index <HASH>..<HASH> 100644 --- a/openid/consumer/discover.py +++ b/openid/consumer/discover.py @@ -61,10 +61,14 @@ class OpenIDServiceEndpoint(object): return OPENID_1_0_MESSAGE_NS def supportsType(self, type_uri): - """D...
[project @ consumer.discover.OpenIDServiceEndpoint.supportsType: clarification]
py
diff --git a/securesystemslib/gpg/functions.py b/securesystemslib/gpg/functions.py index <HASH>..<HASH> 100644 --- a/securesystemslib/gpg/functions.py +++ b/securesystemslib/gpg/functions.py @@ -47,7 +47,8 @@ def gpg_sign_object(content, keyid=None, homedir=None): Path to the gpg keyring. If not passed the...
DOC:gpg:functions: update exception docstrings The gpg_sign_object did not mention two possible exceptions to raise when trying to sign an object. Mention those two exceptions and the reasons as to why they may be raised in the docstrings.
py
diff --git a/blis/about.py b/blis/about.py index <HASH>..<HASH> 100644 --- a/blis/about.py +++ b/blis/about.py @@ -5,7 +5,7 @@ # https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py __name__ = "blis" -__version__ = "0.4.0" +__version__ = "0.4.0.dev0" __summary__ = ( "The Blis BLAS-like linear ...
Set version to <I>.dev0
py
diff --git a/openquake/calculators/tests/event_based_risk_test.py b/openquake/calculators/tests/event_based_risk_test.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/event_based_risk_test.py +++ b/openquake/calculators/tests/event_based_risk_test.py @@ -123,7 +123,8 @@ class EventBasedRiskTestCase(Calc...
Relaxed an assertEqualFiles
py
diff --git a/tests/test_web_response.py b/tests/test_web_response.py index <HASH>..<HASH> 100644 --- a/tests/test_web_response.py +++ b/tests/test_web_response.py @@ -169,3 +169,18 @@ class TestStreamResponse(unittest.TestCase): resp.write_eof() with self.assertRaises(RuntimeError): resp....
Add test for writing non-byteish data
py
diff --git a/go/vt/tabletmanager/test.py b/go/vt/tabletmanager/test.py index <HASH>..<HASH> 100755 --- a/go/vt/tabletmanager/test.py +++ b/go/vt/tabletmanager/test.py @@ -678,7 +678,7 @@ def run_all(): # run_test_mysqlctl_clone() run_test_vtctl_clone() - # This test does not pass. + # This test does not pass ...
increase accuracy of comment disabling a test temporarily
py
diff --git a/tests/support.py b/tests/support.py index <HASH>..<HASH> 100644 --- a/tests/support.py +++ b/tests/support.py @@ -136,9 +136,9 @@ def copy_xxmodule_c(directory): Example use: - def test_compile(self): - copy_xxmodule_c(self.tmpdir) - self.assertIn('xxmodule...
Dedent example in docstring
py
diff --git a/meshio/msh_io/msh4_1.py b/meshio/msh_io/msh4_1.py index <HASH>..<HASH> 100644 --- a/meshio/msh_io/msh4_1.py +++ b/meshio/msh_io/msh4_1.py @@ -128,7 +128,6 @@ def _read_nodes(f, is_ascii, data_size): num_entity_blocks, total_num_nodes, min_node_tag, max_node_tag = fromfile( f, c_size_t, 4 ...
F<I> delete unused local variable
py
diff --git a/labsuite/engine/commands.py b/labsuite/engine/commands.py index <HASH>..<HASH> 100644 --- a/labsuite/engine/commands.py +++ b/labsuite/engine/commands.py @@ -104,13 +104,3 @@ def execute(command_string): if not handler: raise KeyError("Command not found: " + command) return handler.execu...
Commands: Code cleanup; forgot I wrote a clear method.
py
diff --git a/clustergrammer3/load_data.py b/clustergrammer3/load_data.py index <HASH>..<HASH> 100644 --- a/clustergrammer3/load_data.py +++ b/clustergrammer3/load_data.py @@ -1,10 +1,17 @@ def load_file(net, filename): - import io + import io, sys f = open(filename, 'r') file_string = f.read() - file_stri...
workin on unicode/str fix for 2 and 3
py
diff --git a/ginga/qtw/GingaQt.py b/ginga/qtw/GingaQt.py index <HASH>..<HASH> 100644 --- a/ginga/qtw/GingaQt.py +++ b/ginga/qtw/GingaQt.py @@ -246,7 +246,7 @@ class GingaView(QtMain.QtMain): return menubar def add_dialogs(self): - filesel = QtGui.QFileDialog(self.w.root) + filesel = QtGui....
Qt file dialog to look at current directory instead of remembering old session
py
diff --git a/nupic/simple_server.py b/nupic/simple_server.py index <HASH>..<HASH> 100755 --- a/nupic/simple_server.py +++ b/nupic/simple_server.py @@ -23,6 +23,9 @@ A simple web server for interacting with NuPIC. Note: Requires web.py to run (install using '$ pip install web.py') """ +import os +import sys +sys.path...
Fixed 'nupic.math' naming conflict with python's built in 'math' to fix 'import web' when simple_server was run from within nupic directory.
py
diff --git a/lexicon/providers/godaddy.py b/lexicon/providers/godaddy.py index <HASH>..<HASH> 100644 --- a/lexicon/providers/godaddy.py +++ b/lexicon/providers/godaddy.py @@ -179,9 +179,9 @@ class Provider(BaseProvider): @staticmethod def _identifier(record): sha256 = hashlib.sha256() - sha256...
Avoid collisions in identifiers
py
diff --git a/pypsa/pf.py b/pypsa/pf.py index <HASH>..<HASH> 100644 --- a/pypsa/pf.py +++ b/pypsa/pf.py @@ -1244,7 +1244,7 @@ def calculate_PTDF(sub_network, skip_pre=False): I = csc_matrix((np.ones(n_pvpq), (index, index))) - B_inverse = spsolve(sub_network.B[1:, 1:], I) + B_inverse = spsolve(csc_matrix(...
pf.py: use csc_matrix for spsolve
py
diff --git a/tests/runtests.py b/tests/runtests.py index <HASH>..<HASH> 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -141,7 +141,7 @@ class SaltTestsuiteParser(SaltCoverageTestingParser): self.start_coverage( branch=True, - source=[os.path.join(os.getcwd(), 'salt')], + ...
Use the defined `SALT_ROOT` as the source parameter for the coverage call.
py
diff --git a/pynipap/pynipap.py b/pynipap/pynipap.py index <HASH>..<HASH> 100644 --- a/pynipap/pynipap.py +++ b/pynipap/pynipap.py @@ -981,10 +981,13 @@ class Prefix(Pynipap): 'alarm_priority': self.alarm_priority, 'monitor': self.monitor, 'vlan': self.vlan, - 'status':...
Fix pynipap status value If status hasn't been set we should default to whatever the backend thinks ('assigned') but as pynipap used its default value of None, the backend would try to honour that. This changes that so we only send the status value to the backend if its not None. Fixes #<I>.
py
diff --git a/python_modules/dagster-graphql/dagster_graphql/implementation/fetch_partition_sets.py b/python_modules/dagster-graphql/dagster_graphql/implementation/fetch_partition_sets.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster-graphql/dagster_graphql/implementation/fetch_partition_sets.py +++ b/python_...
fix non-unique ids for partition status Test Plan: none Reviewers: dish Reviewed By: dish Differential Revision: <URL>
py
diff --git a/FukuML/__init__.py b/FukuML/__init__.py index <HASH>..<HASH> 100644 --- a/FukuML/__init__.py +++ b/FukuML/__init__.py @@ -1,6 +1,6 @@ #encoding=utf8 -__version__ = '0.2.3' +__version__ = '0.2.4' __all__ = [ 'MLBase', 'PLA',
<I> - Decision Tree Classification Learning Algorithm - Decision Tree Regression Learning Algorithm
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 @@ -511,7 +511,7 @@ def dl_files(db, dl_dir, files, keep_subdirs=True, overwrite=False): db_url = posixpath.join(PN_CONTENT_URL, db_dir) + '/' # Check if the database is val...
dl_files: use HEAD when no content is desired. This function requests the file index of the specified database, to check whether it exists, but does not actually read its contents. This is a waste of bandwidth and a waste of processing time on both ends. Change this to perform a HEAD request instead.
py
diff --git a/Lib/pyhsm/__init__.py b/Lib/pyhsm/__init__.py index <HASH>..<HASH> 100644 --- a/Lib/pyhsm/__init__.py +++ b/Lib/pyhsm/__init__.py @@ -60,7 +60,6 @@ __all__ = ["base", "hmac_cmd", "oath_hotp", "validate_cmd", - "yubikey", ] from pyhsm.base import ...
remove redundantly listed module 'yubikey'
py
diff --git a/web/opensubmit/views/lti.py b/web/opensubmit/views/lti.py index <HASH>..<HASH> 100644 --- a/web/opensubmit/views/lti.py +++ b/web/opensubmit/views/lti.py @@ -10,8 +10,6 @@ from django.utils.decorators import method_decorator from django.views.generic import TemplateView from oauthlib.oauth1 import Requ...
Try to fix mod_wsgi mulithreading race condition
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -42,6 +42,9 @@ class Mock(object): # pylint: enable=R0903 MOCK_MODULES = [ + # Python stdlib + 'user', + # salt core 'Crypto', 'Crypto.Signature', @@ -115,9 +118,29 @@ MOCK_MODULES = [ for...
Doc mock decorators (#<I>) * Add mock function for mocking decorators * Mock the stdlib user module because importing it will open the repl
py
diff --git a/salt/states/cmd.py b/salt/states/cmd.py index <HASH>..<HASH> 100644 --- a/salt/states/cmd.py +++ b/salt/states/cmd.py @@ -561,7 +561,6 @@ def script(name, stateful=False, umask=None, timeout=None, - __env__='base', **kwargs): ''' Download ...
Accepting `__env__` as a keyword argument is no longer required or aceptable
py
diff --git a/rinoh/layout.py b/rinoh/layout.py index <HASH>..<HASH> 100644 --- a/rinoh/layout.py +++ b/rinoh/layout.py @@ -355,8 +355,9 @@ class InlineDownExpandingContainer(ContextManager): def __enter__(self): return self._container - def __exit__(self, exc_type, exc_value, _): - self._conta...
Fix overflow problem with Float placement
py
diff --git a/kytos/cli/commands/napps/api.py b/kytos/cli/commands/napps/api.py index <HASH>..<HASH> 100644 --- a/kytos/cli/commands/napps/api.py +++ b/kytos/cli/commands/napps/api.py @@ -177,9 +177,9 @@ class NAppsAPI: except HTTPError as exception: if exception.code == 404: LOG.e...
Update kytos/cli/commands/napps/api.py
py
diff --git a/pyspectator/memory.py b/pyspectator/memory.py index <HASH>..<HASH> 100644 --- a/pyspectator/memory.py +++ b/pyspectator/memory.py @@ -20,12 +20,13 @@ class AbsMemory(AbcMonitor, metaclass=ABCMeta): self.__total = self._get_total_memory() self.__available = self._get_available_memo...
Fixed bug with collecting statistic of used memory percent.
py
diff --git a/espncricinfo/player.py b/espncricinfo/player.py index <HASH>..<HASH> 100644 --- a/espncricinfo/player.py +++ b/espncricinfo/player.py @@ -8,7 +8,7 @@ class Player(object): def __init__(self, player_id): self.url = "https://www.espncricinfo.com/ci/content/player/{0}.html".format(str(player_i...
espn player json url switched to http; fixes #<I>
py
diff --git a/mailer/engine.py b/mailer/engine.py index <HASH>..<HASH> 100644 --- a/mailer/engine.py +++ b/mailer/engine.py @@ -118,7 +118,7 @@ def send_all(): """ # The actual backend to use for sending, defaulting to the Django default. # To make testing easier this is not stored at module level. - E...
Rename variable to make upcoming change explain itself
py
diff --git a/qpformat/file_formats/__init__.py b/qpformat/file_formats/__init__.py index <HASH>..<HASH> 100644 --- a/qpformat/file_formats/__init__.py +++ b/qpformat/file_formats/__init__.py @@ -58,10 +58,12 @@ class SeriesFolder(SeriesData): meta_data=self.meta_data, ...
bury the idea of series file formats in the SeriesFolder wrapper (#1)
py
diff --git a/angr/lifter.py b/angr/lifter.py index <HASH>..<HASH> 100644 --- a/angr/lifter.py +++ b/angr/lifter.py @@ -141,7 +141,7 @@ class Lifter: for i in range(addr, addr + max_size): if i in backup_state.memory: - val = backup_state.memory.load(backup_state.se.BVV(i), backup_...
Fix _bytes_from_state. BVV() would require the size also
py
diff --git a/pygccxml/declarations/dependencies.py b/pygccxml/declarations/dependencies.py index <HASH>..<HASH> 100644 --- a/pygccxml/declarations/dependencies.py +++ b/pygccxml/declarations/dependencies.py @@ -20,9 +20,6 @@ def i_depend_on_them(decl, recursive=True): """ result = [] - if isinstance(decl...
Return empty list at end of i_depend_on_them If the type of declaration was not know, the method could return None. This allows also to skip the 2 first checks, which also return an empty list. This is nicer than returning None, because this allows directly to loop over the dependencies list when working with this met...
py
diff --git a/ospd/ospd.py b/ospd/ospd.py index <HASH>..<HASH> 100644 --- a/ospd/ospd.py +++ b/ospd/ospd.py @@ -1073,7 +1073,7 @@ class OSPDaemon: 'get_performance' ) - return simple_response_str('get_performance', 200, 'OK', str(output)) + return simple_response_str('get_pe...
Fix get_perfomance. Decode() output before sending.
py
diff --git a/bcbio/pipeline/qcsummary.py b/bcbio/pipeline/qcsummary.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/qcsummary.py +++ b/bcbio/pipeline/qcsummary.py @@ -112,6 +112,7 @@ def _run_qc_tools(bam_file, data): if "fastqc" not in tz.get_in(("config", "algorithm", "tools_off"), data, []): to_run...
Add bamtools to RNA-seq quality metrics.
py
diff --git a/tests/integration/spm/test_build.py b/tests/integration/spm/test_build.py index <HASH>..<HASH> 100644 --- a/tests/integration/spm/test_build.py +++ b/tests/integration/spm/test_build.py @@ -7,6 +7,9 @@ from __future__ import absolute_import import os import shutil +# Import Salt libs +import salt.utils...
Fix lint failure on <I> branch
py
diff --git a/ipyrad/analysis/snps_extracter.py b/ipyrad/analysis/snps_extracter.py index <HASH>..<HASH> 100644 --- a/ipyrad/analysis/snps_extracter.py +++ b/ipyrad/analysis/snps_extracter.py @@ -242,10 +242,11 @@ class SNPsExtracter(object): df = df.drop(columns=["CHROM", "REF", "ALT", "QUAL"]) - def su...
option to not print report when subsampling
py
diff --git a/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py b/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py index <HASH>..<HASH> 100644 --- a/tests/functional/ext/code_style/code_style_consider_using_assignment_expr.py +++ b/tests/functional/ext/code_style/co...
Add additional test case - consider-using-assignment-expr (#<I>)
py
diff --git a/etrago/appl.py b/etrago/appl.py index <HASH>..<HASH> 100755 --- a/etrago/appl.py +++ b/etrago/appl.py @@ -47,7 +47,7 @@ if "READTHEDOCS" not in os.environ: args = { # Setup and Configuration: - "db": "egon-data_testmode_dump", # database session + "db": "egon-data", # database session ...
changed db in args
py
diff --git a/ci/setup_utils.py b/ci/setup_utils.py index <HASH>..<HASH> 100644 --- a/ci/setup_utils.py +++ b/ci/setup_utils.py @@ -23,6 +23,7 @@ #------------------------------------------------------------------------------- import os import re +import shutil import subprocess import sys import sysconfig
Fix missing import in setup_utils.py (#<I>)
py
diff --git a/nanomsg/__init__.py b/nanomsg/__init__.py index <HASH>..<HASH> 100644 --- a/nanomsg/__init__.py +++ b/nanomsg/__init__.py @@ -262,7 +262,7 @@ class Socket(object): 'milliseconds (0.001 seconds)') recv_buffer_size = property(_get_recv_buffer_size, _set_recv_buffer_size, ...
Fix: Socket.send_buffer_size used wrong setter
py
diff --git a/dev/writeHeader.py b/dev/writeHeader.py index <HASH>..<HASH> 100644 --- a/dev/writeHeader.py +++ b/dev/writeHeader.py @@ -424,6 +424,7 @@ def writeListOfSubFunctions(attrib, output, element, elementDict): #write class def writeClass(attributes, header, nameOfElement, nameOfPackage, hasChildren, hasMath, ...
- fix issue in generator that would break c++ namespaces
py
diff --git a/cocaine/worker/worker.py b/cocaine/worker/worker.py index <HASH>..<HASH> 100644 --- a/cocaine/worker/worker.py +++ b/cocaine/worker/worker.py @@ -226,7 +226,7 @@ class BasicWorker(object): self.disown_timer.stop() def _dispatch_terminate(self, msg): - workerlog.debug("terminate has b...
feat: logging improvements (#<I>) Increase log level on message, when terminate command is received
py
diff --git a/tests/transformers/test_full_pipeline.py b/tests/transformers/test_full_pipeline.py index <HASH>..<HASH> 100644 --- a/tests/transformers/test_full_pipeline.py +++ b/tests/transformers/test_full_pipeline.py @@ -40,7 +40,6 @@ class FullPipelineTestCase_robot_failures(TestCase): ...
mean_autocorrelation does not exist as feature anymore
py
diff --git a/lib/svtplay_dl/service/hbo.py b/lib/svtplay_dl/service/hbo.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/hbo.py +++ b/lib/svtplay_dl/service/hbo.py @@ -18,7 +18,7 @@ class Hbo(Service): def get(self, options): parse = urlparse(self.url) try: - other = parse[5...
hbo: better way to detect app and path values
py
diff --git a/buildbot/status/builder.py b/buildbot/status/builder.py index <HASH>..<HASH> 100644 --- a/buildbot/status/builder.py +++ b/buildbot/status/builder.py @@ -2135,7 +2135,7 @@ class Status: builder_status.status = self if not os.path.isdir(builder_status.basedir): - os.mkdir(buil...
Resolve #<I> - Use makedirs rather than mkdir to create intermediate directories
py
diff --git a/tests/test_industrial_test.py b/tests/test_industrial_test.py index <HASH>..<HASH> 100644 --- a/tests/test_industrial_test.py +++ b/tests/test_industrial_test.py @@ -243,6 +243,7 @@ class FakeStepAttempt: return iter(self.result) def iter_steps(self, client): + yield self.stage.as_re...
Add initial yield to FakeStepAttempt.
py
diff --git a/tensor2tensor/trax/rl/simple.py b/tensor2tensor/trax/rl/simple.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/trax/rl/simple.py +++ b/tensor2tensor/trax/rl/simple.py @@ -198,11 +198,11 @@ class ReplayPolicy(object): del observations def get_action(traj): + action = None if self....
Since actions can now be np.array, "if action" is ambiguous and crashes. PiperOrigin-RevId: <I>
py
diff --git a/cartoview/app_manager/management/commands/load_current_apps.py b/cartoview/app_manager/management/commands/load_current_apps.py index <HASH>..<HASH> 100644 --- a/cartoview/app_manager/management/commands/load_current_apps.py +++ b/cartoview/app_manager/management/commands/load_current_apps.py @@ -32,8 +32,...
fix load_current_apps command
py
diff --git a/kafka/coordinator/consumer.py b/kafka/coordinator/consumer.py index <HASH>..<HASH> 100644 --- a/kafka/coordinator/consumer.py +++ b/kafka/coordinator/consumer.py @@ -140,8 +140,9 @@ class ConsumerCoordinator(BaseCoordinator): if self._subscription.subscribed_pattern.match(topic): ...
change_subscription called only when necessary (#<I>) When we are using subscription by pattern change subscription is called every metadata update even when nothing changes. This PR ensures that change subscription is called only when set of topics changes.
py
diff --git a/shinken/daemons/arbiterdaemon.py b/shinken/daemons/arbiterdaemon.py index <HASH>..<HASH> 100644 --- a/shinken/daemons/arbiterdaemon.py +++ b/shinken/daemons/arbiterdaemon.py @@ -555,7 +555,7 @@ class Arbiter(Daemon): suppl_socks = [ self.fifo ] else: ...
Fix: elapsed time badly computed in arbiter daemon when external command enabled
py
diff --git a/src/ibmiotf/__init__.py b/src/ibmiotf/__init__.py index <HASH>..<HASH> 100644 --- a/src/ibmiotf/__init__.py +++ b/src/ibmiotf/__init__.py @@ -29,7 +29,7 @@ from datetime import datetime from pkg_resources import get_distribution from encodings.base64_codec import base64_encode -__version__ = "0.2.0" +_...
Version incorrectly bumped in last commit
py
diff --git a/cinderlib/cinderlib.py b/cinderlib/cinderlib.py index <HASH>..<HASH> 100644 --- a/cinderlib/cinderlib.py +++ b/cinderlib/cinderlib.py @@ -299,7 +299,9 @@ class Object(object): fields_values.update(fields_data) # We support manually setting the id, so set only if not already set - ...
Accept id set to None Existing code was expecting the "id" field to be a non "None" value whenever it was present, so when the "None" value was set we would not generate a new UUID and the creation of the OVO would fail because the "id" field could not be "None". This patch adds support for UUID generation when "id" ...
py
diff --git a/quark/test/test_emit.py b/quark/test/test_emit.py index <HASH>..<HASH> 100644 --- a/quark/test/test_emit.py +++ b/quark/test/test_emit.py @@ -53,6 +53,8 @@ def test_emit(path): comp.emit(backend) extbase = os.path.join(base, backend.ext) if not os.path.exists(extbase): + ...
Add test-passing hack for JavaScript known failures
py
diff --git a/queued_storage/backend.py b/queued_storage/backend.py index <HASH>..<HASH> 100644 --- a/queued_storage/backend.py +++ b/queued_storage/backend.py @@ -11,15 +11,27 @@ class QueuedRemoteStorage(Storage): def __init__(self, local, remote, cache_prefix=QUEUED_REMOTE_STORAGE_CACHE_KEY_PREFIX, task=None):...
Only create storage instances when required, not on import. This drastically speeds up startup times for anything that imports all models (which is pretty much anything in Django). It saves having to connect to the remote storage, in particular, until it's required.
py
diff --git a/master/buildbot/steps/package/rpm/mock.py b/master/buildbot/steps/package/rpm/mock.py index <HASH>..<HASH> 100644 --- a/master/buildbot/steps/package/rpm/mock.py +++ b/master/buildbot/steps/package/rpm/mock.py @@ -46,6 +46,8 @@ class Mock(ShellCommand): name = "mock" + renderables = ["root", "r...
Add more renderables for Mock
py
diff --git a/telethon/tl/message_container.py b/telethon/tl/message_container.py index <HASH>..<HASH> 100644 --- a/telethon/tl/message_container.py +++ b/telethon/tl/message_container.py @@ -1,5 +1,6 @@ -from . import TLObject, GzipPacked -from ..extensions import BinaryWriter +import struct + +from . import TLObject ...
Remove BinaryWriter dependency on MessageContainer
py
diff --git a/zipline/utils/pandas_utils.py b/zipline/utils/pandas_utils.py index <HASH>..<HASH> 100644 --- a/zipline/utils/pandas_utils.py +++ b/zipline/utils/pandas_utils.py @@ -118,9 +118,7 @@ def find_in_sorted_index(dts, dt): """ ix = dts.searchsorted(dt) if dts[ix] != dt: - raise KeyError( - ...
MAINT: Raise LookupError instead of KeyError. KeyError calls __repr__ on its input, which makes it really unpleasant to read multi-line strings.
py
diff --git a/dhooks/client.py b/dhooks/client.py index <HASH>..<HASH> 100644 --- a/dhooks/client.py +++ b/dhooks/client.py @@ -116,9 +116,8 @@ class Webhook: """ # noqa: W605 - REGEX = r'^(https://)?discordapp.com/api/webhooks/' \ - r'(?P<id>[0-9]+)/(?P<token>[A-Za-z0-9\.\-\_]+)/?$' - # TODO:...
Renamed REGEX -> URL_REGEX for Webhook; removed a TODO
py
diff --git a/umis/umis.py b/umis/umis.py index <HASH>..<HASH> 100644 --- a/umis/umis.py +++ b/umis/umis.py @@ -716,7 +716,7 @@ def guess_depth_cutoff(cb_histogram): return cutoff @click.command() -@click.argument('fastq', type=click.File('r')) +@click.argument('fastq', required=True) @click.option('--bc1',...
Allow cb_filtering to be performed on gzipped FASTQ files.
py
diff --git a/alot/widgets.py b/alot/widgets.py index <HASH>..<HASH> 100644 --- a/alot/widgets.py +++ b/alot/widgets.py @@ -185,8 +185,8 @@ class ThreadlineWidget(urwid.AttrMap): part = content_w elif name == 'tags': if self.thread: - fallback_normal = self.structure['no...
use correct default values in threadline's tags part this makes threadline.tags use the defaults from [threadline] [[tags]]
py
diff --git a/test/test_mapper.py b/test/test_mapper.py index <HASH>..<HASH> 100644 --- a/test/test_mapper.py +++ b/test/test_mapper.py @@ -276,19 +276,19 @@ class TestLens: def test_lens_size(self): mapper = KeplerMapper() - - data = np.random.rand(100, 10) + data = np.random.rand(100, 5) ...
update to lens test (not functioning)
py
diff --git a/jishaku/paginators.py b/jishaku/paginators.py index <HASH>..<HASH> 100644 --- a/jishaku/paginators.py +++ b/jishaku/paginators.py @@ -291,6 +291,9 @@ class PaginatorInterface: # pylint: disable=too-many-instance-attributes while not self.bot.is_closed(): done, _ = await async...
Fix PaginatorInterface not closing with timeout
py
diff --git a/unittest/Si_mem_test.py b/unittest/Si_mem_test.py index <HASH>..<HASH> 100755 --- a/unittest/Si_mem_test.py +++ b/unittest/Si_mem_test.py @@ -35,7 +35,7 @@ class TestDynaphopy(unittest.TestCase): self.assertEqual(np.allclose(renormalized_force_constants, harmonic_force_constants, rtol=1, atol=1....
temporally disable part of silicon MEM test
py
diff --git a/check_manifest.py b/check_manifest.py index <HASH>..<HASH> 100755 --- a/check_manifest.py +++ b/check_manifest.py @@ -329,14 +329,13 @@ class Mercurial(VCS): class Bazaar(VCS): metadata_name = '.bzr' - # Bzr on Windows apparently uses OEM encoding instead of ANSI - _encoding = (getattr(sys.st...
sys.stdout might change from test to test
py
diff --git a/tests/test_regression.py b/tests/test_regression.py index <HASH>..<HASH> 100644 --- a/tests/test_regression.py +++ b/tests/test_regression.py @@ -17,6 +17,8 @@ and compares the output to the reference. from __future__ import print_function +from nose.tools import assert_equal, assert_raises + import ...
Refactor file comparison in regression tests The new way is faster as it fails at the first different line between the file of interest and the reference. It also allows easier debugging as it now displays the first different line in both files. The tests now rely on nosetests.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( author = "Sam Clements", author_email = "sam@borntyping.co.uk", - url = "https://github.com/borntyping/dice", + url = "https://github.com/borntyping...
Corrected the url used in the package metadata
py
diff --git a/pdf/modify/__init__.py b/pdf/modify/__init__.py index <HASH>..<HASH> 100644 --- a/pdf/modify/__init__.py +++ b/pdf/modify/__init__.py @@ -1,8 +1,7 @@ from reportlab.lib.pagesizes import letter -from pdf.modify.draw.image import DrawPIL LETTER = letter[1], letter[0] -__all__ = ['LETTER', 'DrawPIL'...
CUT DrawPIL from __all__ declaration
py
diff --git a/tools/pip-compile-wrapper.py b/tools/pip-compile-wrapper.py index <HASH>..<HASH> 100755 --- a/tools/pip-compile-wrapper.py +++ b/tools/pip-compile-wrapper.py @@ -95,6 +95,7 @@ def _run_pip_compile( if not upgrade_packages: upgrade_packages = set() + working_path = Path.cwd() source_...
Use relative paths in pip-compile-wrapper To prevent absolute paths in our pip-compile output we now pass paths relative to the working directory.
py
diff --git a/leaflet_storage/base_models.py b/leaflet_storage/base_models.py index <HASH>..<HASH> 100644 --- a/leaflet_storage/base_models.py +++ b/leaflet_storage/base_models.py @@ -201,9 +201,9 @@ class Category(NamedModel): filters = { "category": self } - marker...
Don't use Marker, Polyline... in base_model
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ packages = [ ] requires = [ - 'suds-jurko>=0.5.0', + 'suds-jurko>=0.6.0', 'dogpile.cache' ]
Bump dependency to suds-jurko <I>.
py
diff --git a/kerncraft/cacheprediction.py b/kerncraft/cacheprediction.py index <HASH>..<HASH> 100755 --- a/kerncraft/cacheprediction.py +++ b/kerncraft/cacheprediction.py @@ -276,9 +276,9 @@ class CacheSimulationPredictor(CachePredictor): ) break warmup_iteration_c...
FIX #<I> by chaning full-caching detection
py
diff --git a/salt/cloud/clouds/softlayer_hw.py b/salt/cloud/clouds/softlayer_hw.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/softlayer_hw.py +++ b/salt/cloud/clouds/softlayer_hw.py @@ -281,9 +281,9 @@ def create(vm_): ) kwargs['prices'].append({'id': port_speed}) - # Default is 125 (Unlimited B...
Set default to <I> as per @underscorephil
py
diff --git a/source/rafcon/mvc/models/auto_backup.py b/source/rafcon/mvc/models/auto_backup.py index <HASH>..<HASH> 100644 --- a/source/rafcon/mvc/models/auto_backup.py +++ b/source/rafcon/mvc/models/auto_backup.py @@ -25,17 +25,11 @@ RAFCON_RUNTIME_BACKUP_PATH = os.path.join(RAFCON_TEMP_PATH_BASE, 'runtime_backup if ...
auto backup: add proper pid reading by psutil which also supports windows
py
diff --git a/docker/api/container.py b/docker/api/container.py index <HASH>..<HASH> 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -399,7 +399,7 @@ class ContainerApiMixin(object): name (str): A name for the container entrypoint (str or list): An entrypoint ...
Fix domainname documentation in create_container function It looks like this was probably originally copypasta'ed from dns_search and not edited afterward.
py
diff --git a/invenio_userprofiles/alembic/41157f1933d6_remove_table.py b/invenio_userprofiles/alembic/41157f1933d6_remove_table.py index <HASH>..<HASH> 100644 --- a/invenio_userprofiles/alembic/41157f1933d6_remove_table.py +++ b/invenio_userprofiles/alembic/41157f1933d6_remove_table.py @@ -34,15 +34,22 @@ def upgrade()...
alembic: add preferences to migration script
py
diff --git a/yotta/main.py b/yotta/main.py index <HASH>..<HASH> 100644 --- a/yotta/main.py +++ b/yotta/main.py @@ -36,6 +36,22 @@ def splitList(l, at_value): r[-1].append(x) return r +def _exitSilentlyOnUnhandledPipeError(fn): + import functools + @functools.wraps(fn) + def wrapped(*args, *...
fix #<I> (catch unhandled pipe errors from main, and exit silently)
py
diff --git a/treeherder/client/thclient/client.py b/treeherder/client/thclient/client.py index <HASH>..<HASH> 100644 --- a/treeherder/client/thclient/client.py +++ b/treeherder/client/thclient/client.py @@ -9,7 +9,7 @@ from requests_hawk import HawkAuth # The Python client release process is documented here: # http...
Bug <I> - Bump treeherder python client to version <I> (#<I>)
py
diff --git a/bcbio/variation/freebayes.py b/bcbio/variation/freebayes.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/freebayes.py +++ b/bcbio/variation/freebayes.py @@ -204,7 +204,8 @@ def fix_somatic_calls(in_file, config): # HACK: Needed to replicate the structure used by PyVCF Info = namedtuple('Info...
Added REJECT FILTER-field into paired FreeBayes calling
py
diff --git a/dependency_injector/providers.py b/dependency_injector/providers.py index <HASH>..<HASH> 100644 --- a/dependency_injector/providers.py +++ b/dependency_injector/providers.py @@ -110,6 +110,9 @@ class Provider(object): :type provider: :py:class:`Provider` :raise: :py:exc:`dependency_inje...
Update doc block for Provider.override() method
py
diff --git a/aioice/ice.py b/aioice/ice.py index <HASH>..<HASH> 100644 --- a/aioice/ice.py +++ b/aioice/ice.py @@ -767,9 +767,10 @@ class Connection: try: stun.parse_message(raw_data, integrity_key=self.local_password.encode('utf8')) - rx_username = '%s:%...
don't check USERNAME if we don't have remote ufrag yet
py
diff --git a/ansible_runner/runner.py b/ansible_runner/runner.py index <HASH>..<HASH> 100644 --- a/ansible_runner/runner.py +++ b/ansible_runner/runner.py @@ -238,8 +238,8 @@ class Runner(object): Example: {'dark': {}, 'failures': {}, 'skipped': {}, 'ok': {u'localhost': 2}, 'processed': {u'localho...
Fix an issue where events returned for stats is an iterator in py3
py
diff --git a/neurom/log.py b/neurom/log.py index <HASH>..<HASH> 100644 --- a/neurom/log.py +++ b/neurom/log.py @@ -30,15 +30,16 @@ Configures logger LOG with a stream handler. +* Logger name exported as LOGGER_NAME * Sets up a default stream handler with shor tformat string and level DEBUG. - * Defines short and...
Make neurom.log logger named as 'neurom'.
py
diff --git a/src/interfaces/output_parsers.py b/src/interfaces/output_parsers.py index <HASH>..<HASH> 100644 --- a/src/interfaces/output_parsers.py +++ b/src/interfaces/output_parsers.py @@ -23,6 +23,10 @@ from os.path import isfile +class Error(Exception): + pass + + class OutputParser(object): def __ini...
An error is reported when an output file is not found.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ setup( author_email = 'saghul@gmail.com', description = 'Tornado IOLoop implementation with pyuv', long_description = open('README.rst', 'r').read(), - packages = ['tornado_pyu...
Added install_requires to setup.py
py
diff --git a/lib/python/vdm/server/HTTPListener.py b/lib/python/vdm/server/HTTPListener.py index <HASH>..<HASH> 100644 --- a/lib/python/vdm/server/HTTPListener.py +++ b/lib/python/vdm/server/HTTPListener.py @@ -2266,14 +2266,11 @@ class StatusDatabaseAPI(MethodView): return jsonify({'status': 'error', ...
VDM-<I>: Removed unwanted code as commented in pull request
py
diff --git a/codespell_lib/tests/test_dictionary.py b/codespell_lib/tests/test_dictionary.py index <HASH>..<HASH> 100644 --- a/codespell_lib/tests/test_dictionary.py +++ b/codespell_lib/tests/test_dictionary.py @@ -75,7 +75,7 @@ def _check_aspell(phrase, msg, in_aspell, fname): elif in_aspell is False: la...
Test: check for all dictionaries
py
diff --git a/ipywidgets/widgets/widget_image.py b/ipywidgets/widgets/widget_image.py index <HASH>..<HASH> 100644 --- a/ipywidgets/widgets/widget_image.py +++ b/ipywidgets/widgets/widget_image.py @@ -6,6 +6,7 @@ Represents an image in the frontend using a widget. """ import mimetypes +import hashlib from .widget_c...
Override repr in Image to represent value in some way This is based on @vidartf's suggestion, and includes a bit of copy+paste from nbdime
py
diff --git a/examples/clickable_waffle.py b/examples/clickable_waffle.py index <HASH>..<HASH> 100644 --- a/examples/clickable_waffle.py +++ b/examples/clickable_waffle.py @@ -11,6 +11,6 @@ app = App("Waffle!", height=50*20, width=50*20) # Create a waffle 80x80 with circular pixels 10x10 and 2px padding between the...
Bringing example in line with lawsie/guizero:master
py
diff --git a/swingtime/models.py b/swingtime/models.py index <HASH>..<HASH> 100644 --- a/swingtime/models.py +++ b/swingtime/models.py @@ -203,7 +203,7 @@ class Occurrence(models.Model): #--------------------------------------------------------------------------- def __str__(self): - return '{}: {}'....
Add support for unicode characters in title
py
diff --git a/django_conneg/views.py b/django_conneg/views.py index <HASH>..<HASH> 100644 --- a/django_conneg/views.py +++ b/django_conneg/views.py @@ -97,11 +97,12 @@ class ContentNegotiatedView(View): if response is NotImplemented: continue response.status_code = status_code ...
The renderer used for a response is now exposed as a ``renderer`` attribute on the response object.
py
diff --git a/trollsift/parser.py b/trollsift/parser.py index <HASH>..<HASH> 100644 --- a/trollsift/parser.py +++ b/trollsift/parser.py @@ -305,7 +305,7 @@ class RegexFormatter(string.Formatter): width=width, precision=precision ) - if ftype in ['s', ''] and align an...
Change list to tuple in if statement
py